public interface BoundCurveExtrapolator
A bound extrapolator is created from a CurveExtrapolator.
The bind process takes the definition of the extrapolator and combines it with the x-y values.
This allows implementations to optimize extrapolation calculations.
This interface is primarily used internally. Applications typically do not invoke these methods.
| Modifier and Type | Method and Description |
|---|---|
double |
leftExtrapolate(double xValue)
Left extrapolates the y-value from the specified x-value.
|
double |
leftExtrapolateFirstDerivative(double xValue)
Calculates the first derivative of the left extrapolated y-value at the specified x-value.
|
DoubleArray |
leftExtrapolateParameterSensitivity(double xValue)
Calculates the parameter sensitivities of the left extrapolated y-value at the specified x-value.
|
double |
rightExtrapolate(double xValue)
Right extrapolates the y-value from the specified x-value.
|
double |
rightExtrapolateFirstDerivative(double xValue)
Calculates the first derivative of the right extrapolated y-value at the specified x-value.
|
DoubleArray |
rightExtrapolateParameterSensitivity(double xValue)
Calculates the parameter sensitivities of the right extrapolated y-value at the specified x-value.
|
double leftExtrapolate(double xValue)
This method is only intended to be invoked when the x-value is less than the x-value of the first node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - if the y-value cannot be calculateddouble leftExtrapolateFirstDerivative(double xValue)
This method is only intended to be invoked when the x-value is less than the x-value of the first node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - if the derivative cannot be calculatedDoubleArray leftExtrapolateParameterSensitivity(double xValue)
This method is only intended to be invoked when the x-value is less than the x-value of the first node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - if the sensitivity cannot be calculateddouble rightExtrapolate(double xValue)
This method is only intended to be invoked when the x-value is greater than the x-value of the last node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - if the y-value cannot be calculateddouble rightExtrapolateFirstDerivative(double xValue)
This method is only intended to be invoked when the x-value is greater than the x-value of the last node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - if the derivative cannot be calculatedDoubleArray rightExtrapolateParameterSensitivity(double xValue)
This method is only intended to be invoked when the x-value is greater than the x-value of the last node. The behavior is undefined if called with any other x-value.
xValue - the x-value to find the y-value forRuntimeException - 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.