Interface ParametricRealFunction
-
- All Known Implementing Classes:
ParametricGaussianFunction
public interface ParametricRealFunctionAn interface representing a real function that depends on one independent variable plus some extra parameters.- Version:
- $Revision: 1073158 $ $Date: 2011-02-21 22:46:52 +0100 (lun. 21 févr. 2011) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]gradient(double x, double[] parameters)Compute the gradient of the function with respect to its parameters.doublevalue(double x, double[] parameters)Compute the value of the function.
-
-
-
Method Detail
-
value
double value(double x, double[] parameters) throws FunctionEvaluationExceptionCompute the value of the function.- Parameters:
x- the point for which the function value should be computedparameters- function parameters- Returns:
- the value
- Throws:
FunctionEvaluationException- if the function evaluation fails
-
gradient
double[] gradient(double x, double[] parameters) throws FunctionEvaluationExceptionCompute the gradient of the function with respect to its parameters.- Parameters:
x- the point for which the function value should be computedparameters- function parameters- Returns:
- the value
- Throws:
FunctionEvaluationException- if the function evaluation fails
-
-