org.apache.commons.math.optimization.fitting
Class PolynomialFitter.ParametricPolynomial
java.lang.Object
org.apache.commons.math.optimization.fitting.PolynomialFitter.ParametricPolynomial
- All Implemented Interfaces:
- ParametricRealFunction
- Enclosing class:
- PolynomialFitter
private static class PolynomialFitter.ParametricPolynomial
- extends Object
- implements ParametricRealFunction
Dedicated parametric polynomial class.
Method Summary |
double[] |
gradient(double x,
double[] parameters)
Compute the gradient of the function with respect to its parameters. |
double |
value(double x,
double[] parameters)
Compute the value of the function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolynomialFitter.ParametricPolynomial
private PolynomialFitter.ParametricPolynomial()
gradient
public double[] gradient(double x,
double[] parameters)
throws FunctionEvaluationException
- Compute the gradient of the function with respect to its parameters.
- Specified by:
gradient
in interface ParametricRealFunction
- Parameters:
x
- the point for which the function value should be computedparameters
- function parameters
- Returns:
- the value
- Throws:
FunctionEvaluationException
- if the function evaluation fails
value
public double value(double x,
double[] parameters)
- Compute the value of the function.
- Specified by:
value
in interface ParametricRealFunction
- Parameters:
x
- the point for which the function value should be computedparameters
- function parameters
- Returns:
- the value
Copyright (c) 2003-2010 Apache Software Foundation