| Modifier and Type | Method and Description |
|---|---|
BoundCurveExtrapolator |
bind(DoubleArray xValues,
DoubleArray yValues,
BoundCurveInterpolator interpolator)
Binds this extrapolator to a curve.
|
static ExtendedEnum<CurveExtrapolator> |
extendedEnum()
Gets the extended enum helper.
|
String |
getName()
Gets the name that uniquely identifies this extrapolator.
|
static CurveExtrapolator |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
static CurveExtrapolator of(String uniqueName)
uniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<CurveExtrapolator> extendedEnum()
This helper allows instances of the extrapolator to be looked up. It also provides the complete set of available instances.
BoundCurveExtrapolator bind(DoubleArray xValues, DoubleArray yValues, BoundCurveInterpolator interpolator)
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 method is intended to be called from within
CurveInterpolator.bind(DoubleArray, DoubleArray, CurveExtrapolator, CurveExtrapolator).
Callers should ensure that the interpolator instance passed in fully constructed.
For example, it is incorrect to call this method from a BoundCurveInterpolator constructor.
xValues - the x-values of the curve, must be sorted from low to highyValues - the y-values of the curveinterpolator - the interpolatorString 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.