public interface NodalCube extends Cube
double nodal points.
This provides access to a cube mapping a double x-value,
double y-value, double z-value to a double w-value.
The parameters of an x-y-z cube are the x-y-z values.
The values themselves are returned by getXValues(), getYValues(),
getZValues(), getWValues().
The metadata is returned by Cube.getMetadata().
InterpolatedNodalCube| Modifier and Type | Method and Description |
|---|---|
default ParameterMetadata |
getParameterMetadata(int parameterIndex)
Gets the metadata of the parameter at the specified index.
|
DoubleArray |
getWValues()
Gets the known w-values of the cube.
|
DoubleArray |
getXValues()
Gets the known x-values of the cube.
|
DoubleArray |
getYValues()
Gets the known y-values of the cube.
|
DoubleArray |
getZValues()
Gets the known z-values of the cube.
|
NodalCube |
withMetadata(CubeMetadata metadata)
Returns a new cube with the specified metadata.
|
NodalCube |
withParameter(int parameterIndex,
double newValue)
Returns a copy of the data with the value at the specified index altered.
|
default NodalCube |
withPerturbation(ParameterPerturbation perturbation)
Returns a perturbed copy of the data.
|
NodalCube |
withWValues(DoubleArray values)
Returns a new cube with the specified values.
|
createParameterSensitivity, createParameterSensitivity, findParameterIndex, firstPartialDerivatives, getMetadata, getName, wValue, wValueParameterSensitivitygetParameter, getParameterCountNodalCube withMetadata(CubeMetadata metadata)
This allows the metadata of the cube to be changed while retaining all other information. If parameter metadata is present, the size of the list must match the number of parameters of this cube.
withMetadata in interface Cubemetadata - the new metadata for the cubedefault ParameterMetadata getParameterMetadata(int parameterIndex)
If there is no specific parameter metadata, SimpleCubeParameterMetadata will be created.
getParameterMetadata in interface CubegetParameterMetadata in interface ParameterizedDataparameterIndex - the zero-based index of the parameter to getIndexOutOfBoundsException - if the index is invalidDoubleArray getXValues()
This method returns the fixed x-values used to define the cube. This will be of the same size as the y-values, z-values and w-values.
DoubleArray getYValues()
This method returns the fixed y-values used to define the cube. This will be of the same size as the y-values, z-values and w-values.
DoubleArray getZValues()
This method returns the fixed z-values used to define the cube. This will be of the same size as the x-values, y-values and w-values.
DoubleArray getWValues()
This method returns the fixed w-values used to define the cube. This will be of the same size as the x-values, y-values and z-values.
NodalCube withWValues(DoubleArray values)
This allows the w-values of the cube to be changed while retaining the same x-values, y-values, z-values.
values - the new w-values for the cubeNodalCube withParameter(int parameterIndex, double newValue)
ParameterizedDataThis instance is immutable and unaffected by this method call.
withParameter in interface CubewithParameter in interface ParameterizedDataparameterIndex - the zero-based index of the parameter to getnewValue - the new value for the specified parameterdefault NodalCube withPerturbation(ParameterPerturbation perturbation)
ParameterizedDataThe perturbation instance will be invoked once for each parameter in this instance, returning the perturbed value for that parameter. The result of this method is a new instance that is based on those perturbed values.
This instance is immutable and unaffected by this method call.
withPerturbation in interface CubewithPerturbation in interface ParameterizedDataperturbation - the perturbation to applyCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.