| Modifier and Type | Method and Description |
|---|---|
BoundCurveInterpolator |
bind(DoubleArray xValues,
DoubleArray yValues)
Binds this interpolator to a curve where no extrapolation is permitted.
|
default BoundCurveInterpolator |
bind(DoubleArray xValues,
DoubleArray yValues,
CurveExtrapolator extrapolatorLeft,
CurveExtrapolator extrapolatorRight)
Binds this interpolator to a curve specifying the extrapolators to use.
|
static ExtendedEnum<CurveInterpolator> |
extendedEnum()
Gets the extended enum helper.
|
String |
getName()
Gets the name that uniquely identifies this interpolator.
|
static CurveInterpolator |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
static CurveInterpolator of(String uniqueName)
uniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<CurveInterpolator> extendedEnum()
This helper allows instances of the interpolator to be looked up. It also provides the complete set of available instances.
BoundCurveInterpolator bind(DoubleArray xValues, DoubleArray yValues)
The bound interpolator provides methods to interpolate the y-value for a x-value. If an attempt is made to interpolate an x-value outside the range defined by the first and last nodes, an exception will be thrown.
The bind process takes the definition of the interpolator and combines it with the x-y values. This allows implementations to optimize interpolation calculations.
xValues - the x-values of the curve, must be sorted from low to highyValues - the y-values of the curvedefault BoundCurveInterpolator bind(DoubleArray xValues, DoubleArray yValues, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight)
The bound interpolator provides methods to interpolate the y-value for a x-value. If an attempt is made to interpolate an x-value outside the range defined by the first and last nodes, the appropriate extrapolator will be used.
The bind process takes the definition of the interpolator and combines it with the x-y values. This allows implementations to optimize interpolation calculations.
xValues - the x-values of the curve, must be sorted from low to highyValues - the y-values of the curveextrapolatorLeft - the extrapolator for x-values on the leftextrapolatorRight - the extrapolator for x-values on the rightString getName()
This name is used in serialization and can be parsed using of(String).
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.