public interface BoundCubeInterpolator
A bound interpolator is created from a CubeInterpolator.
The bind process takes the definition of the interpolator and combines it with the x-y-z-w values.
This allows implementations to optimize interpolation calculations.
| Modifier and Type | Method and Description |
|---|---|
ValueDerivatives |
firstPartialDerivatives(double x,
double y,
double z)
Computes the partial derivatives of the cube.
|
double |
interpolate(double x,
double y,
double z)
Computes the w-value for the specified x-y-z value by interpolation.
|
DoubleArray |
parameterSensitivity(double x,
double y,
double z)
Computes the sensitivity of the x-y-z-value with respect to the cube parameters.
|
double interpolate(double x,
double y,
double z)
x - the x-value to find the w-value fory - the y-value to find the w-value forz - the z-value to find the w-value forRuntimeException - if the z-value cannot be calculatedValueDerivatives firstPartialDerivatives(double x, double y, double z)
The first derivatives are dw/dx, dw/dy, dw/dz.
The derivatives are in the following order:
x - the x-value at which the partial derivative is takeny - the y-value at which the partial derivative is takenz - the z-value at which the partial derivative is takenRuntimeException - if the derivative cannot be calculatedDoubleArray parameterSensitivity(double x, double y, double z)
This returns an array with one element for each parameter of the cube. The array contains the sensitivity of the w-value at the specified x-y-z-value to each parameter.
x - the x-value at which the parameter sensitivity is computedy - the y-value at which the parameter sensitivity is computedz - the z-value at which the parameter sensitivity is computedRuntimeException - if the sensitivity cannot be calculatedCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.