public class ParameterizedCurveVectorFunction extends VectorFunction
VectorFunction backed by a ParameterizedCurve.| Constructor and Description |
|---|
ParameterizedCurveVectorFunction(double[] samplePoints,
ParameterizedCurve curve)
Creates an instance with a sampled (parameterised) curve.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleArray |
apply(DoubleArray curveParameters)
Build a curve given the parameters, then return its value at the sample points.
|
DoubleMatrix |
calculateJacobian(DoubleArray x)
Calculate the Jacobian at a point $\mathbf{x}$.
|
int |
getLengthOfDomain()
The length of the input vector $\mathbf{x}$.
|
int |
getLengthOfRange()
The length of the output vector $\mathbf{y}$.
|
public ParameterizedCurveVectorFunction(double[] samplePoints,
ParameterizedCurve curve)
samplePoints - the points where we sample the curvecurve - a parameterised curvepublic DoubleMatrix calculateJacobian(DoubleArray x)
VectorFunctioncalculateJacobian in class VectorFunctionx - the input vector $\mathbf{x}$public int getLengthOfDomain()
VectorFunctiongetLengthOfDomain in class VectorFunctionpublic int getLengthOfRange()
VectorFunctiongetLengthOfRange in class VectorFunctionpublic DoubleArray apply(DoubleArray curveParameters)
curveParameters - the curve parametersCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.