Class DoublesVectorFunctionProvider
- java.lang.Object
-
- com.opengamma.strata.math.impl.function.DoublesVectorFunctionProvider
-
- All Implemented Interfaces:
VectorFunctionProvider<Double>
- Direct Known Subclasses:
ParameterizedCurveVectorFunctionProvider
public abstract class DoublesVectorFunctionProvider extends Object implements VectorFunctionProvider<Double>
An abstraction for anything that provides aVectorFunction
for a set of data points (as Double).
-
-
Constructor Summary
Constructors Constructor Description DoublesVectorFunctionProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract VectorFunction
from(double[] x)
Produces a vector function that depends in some way on the given data points.VectorFunction
from(Double[] x)
Produces a vector function that maps from some 'model' parameters to values at the sample points.VectorFunction
from(List<Double> x)
Produces a vector function that maps from some 'model' parameters to values at the sample points.
-
-
-
Method Detail
-
from
public VectorFunction from(List<Double> x)
Description copied from interface:VectorFunctionProvider
Produces a vector function that maps from some 'model' parameters to values at the sample points.- Specified by:
from
in interfaceVectorFunctionProvider<Double>
- Parameters:
x
- the list of sample points- Returns:
- a
VectorFunction
-
from
public VectorFunction from(Double[] x)
Description copied from interface:VectorFunctionProvider
Produces a vector function that maps from some 'model' parameters to values at the sample points.- Specified by:
from
in interfaceVectorFunctionProvider<Double>
- Parameters:
x
- the array of sample points- Returns:
- a
VectorFunction
-
from
public abstract VectorFunction from(double[] x)
Produces a vector function that depends in some way on the given data points.- Parameters:
x
- the array of data points- Returns:
- a
VectorFunction
-
-