Package com.irurueta.numerical.fitting
Interface LevenbergMarquardtSingleDimensionFunctionEvaluator
public interface LevenbergMarquardtSingleDimensionFunctionEvaluator
Interface to evaluate non-linear single dimensional functions.
Evaluation of functions requires both function value at provided point x and
function gradient respect to its parameters (i.e. derivatives respect to its
parameters)
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Creates array where estimated parameters will be stored.double
evaluate
(int i, double point, double[] params, double[] derivatives) Evaluates a non-linear single dimension function at provided point using provided parameters and returns its evaluation and derivatives of the function respect the function parameters
-
Method Details
-
createInitialParametersArray
double[] createInitialParametersArray()Creates array where estimated parameters will be stored. This array MUST contain the initial guessed solution for the Levenberg- Marquardt algorithm- Returns:
- array where estimated parameters will be stored
-
evaluate
double evaluate(int i, double point, double[] params, double[] derivatives) throws EvaluationException Evaluates a non-linear single dimension function at provided point using provided parameters and returns its evaluation and derivatives of the function respect the function parameters- Parameters:
i
- number of sample being evaluatedpoint
- point where function is evaluatedparams
- initial parameters estimation to be tried. These will change as the Levenberg-Marquard algorithm iterates to the best solution. These are used as input parameters along with point to evaluate functionderivatives
- partial derivatives of the function respect to each provided parameter- Returns:
- function evaluation at provided point and using provided parameters
- Throws:
EvaluationException
- raised if something failed during the evaluation
-