Class CurveFitter.TheoreticalValuesFunction
- java.lang.Object
-
- org.apache.commons.math3.optimization.fitting.CurveFitter.TheoreticalValuesFunction
-
- All Implemented Interfaces:
MultivariateDifferentiableVectorFunction
,MultivariateVectorFunction
- Enclosing class:
- CurveFitter<T extends ParametricUnivariateFunction>
private class CurveFitter.TheoreticalValuesFunction extends java.lang.Object implements MultivariateDifferentiableVectorFunction
Vectorial function computing function theoretical values.
-
-
Field Summary
Fields Modifier and Type Field Description private ParametricUnivariateFunction
f
Function to fit.
-
Constructor Summary
Constructors Constructor Description TheoreticalValuesFunction(ParametricUnivariateFunction f)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
value(double[] point)
Compute the value for the function at the given point.DerivativeStructure[]
value(DerivativeStructure[] point)
Compute the value for the function at the given point.
-
-
-
Field Detail
-
f
private final ParametricUnivariateFunction f
Function to fit.
-
-
Constructor Detail
-
TheoreticalValuesFunction
TheoreticalValuesFunction(ParametricUnivariateFunction f)
Simple constructor.- Parameters:
f
- function to fit.
-
-
Method Detail
-
value
public double[] value(double[] point)
Compute the value for the function at the given point.- Specified by:
value
in interfaceMultivariateVectorFunction
- Parameters:
point
- point at which the function must be evaluated- Returns:
- function value for the given point
-
value
public DerivativeStructure[] value(DerivativeStructure[] point)
Compute the value for the function at the given point.- Specified by:
value
in interfaceMultivariateDifferentiableVectorFunction
- Parameters:
point
- point at which the function must be evaluated- Returns:
- function value for the given point
-
-