Package com.irurueta.numerical.fitting
Interface LinearFitterSingleDimensionFunctionEvaluator
public interface LinearFitterSingleDimensionFunctionEvaluator
Interface to evaluate linear single dimensional functions
f(x) = a * f0(x) + b * f1(x) + ...
Where the linear function is composed of a linear combination of a basis of
functions f0, f1, ... fM
For each evaluation at a given point x, this interface will return an array
containing the evaluations of the basis functions at such point f0(x), f1(x),
..., fM(x)
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Creates array where basis function results will be storedvoid
evaluate
(double point, double[] result) Evaluates a linear single dimension function at provided point and returns the evaluations of the basis functions at such point
-
Method Details
-
createResultArray
double[] createResultArray()Creates array where basis function results will be stored- Returns:
- array where basis function results will be stored
-
evaluate
Evaluates a linear single dimension function at provided point and returns the evaluations of the basis functions at such point- Parameters:
point
- point where function will be evaluatedresult
- array where result of evaluation of basis functions is stored- Throws:
EvaluationException
- raised if something failed during the evaluation
-