Class ParameterizedCurveVectorFunctionProvider
- java.lang.Object
-
- com.opengamma.strata.math.impl.function.DoublesVectorFunctionProvider
-
- com.opengamma.strata.math.impl.function.ParameterizedCurveVectorFunctionProvider
-
- All Implemented Interfaces:
VectorFunctionProvider<Double>
public class ParameterizedCurveVectorFunctionProvider extends DoublesVectorFunctionProvider
A provider of aParameterizedCurveVectorFunction
.
-
-
Constructor Summary
Constructors Constructor Description ParameterizedCurveVectorFunctionProvider(ParameterizedCurve pCurve)
Creates an instance backed by aParameterizedCurve
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorFunction
from(double[] samplePoints)
Produces aVectorFunction
which builds aParameterizedCurve
from the input vector (treated as curve parameters), then samples the curve at the smaplePoints, to produce the output vector.-
Methods inherited from class com.opengamma.strata.math.impl.function.DoublesVectorFunctionProvider
from, from
-
-
-
-
Constructor Detail
-
ParameterizedCurveVectorFunctionProvider
public ParameterizedCurveVectorFunctionProvider(ParameterizedCurve pCurve)
Creates an instance backed by aParameterizedCurve
.- Parameters:
pCurve
- the parameterised curve
-
-
Method Detail
-
from
public VectorFunction from(double[] samplePoints)
Produces aVectorFunction
which builds aParameterizedCurve
from the input vector (treated as curve parameters), then samples the curve at the smaplePoints, to produce the output vector.- Specified by:
from
in classDoublesVectorFunctionProvider
- Parameters:
samplePoints
- the points where we sample the curve- Returns:
- a
ParameterizedCurveVectorFunction
-
-