Class PolynomialFunction.Parametric
- java.lang.Object
-
- org.apache.commons.math4.analysis.polynomials.PolynomialFunction.Parametric
-
- All Implemented Interfaces:
ParametricUnivariateFunction
- Enclosing class:
- PolynomialFunction
public static class PolynomialFunction.Parametric extends java.lang.Object implements ParametricUnivariateFunction
Dedicated parametric polynomial class.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description Parametric()
-
-
-
Method Detail
-
gradient
public double[] gradient(double x, double... parameters)Compute the gradient of the function with respect to its parameters.- Specified by:
gradientin interfaceParametricUnivariateFunction- Parameters:
x- Point for which the function value should be computed.parameters- Function parameters.- Returns:
- the value.
-
value
public double value(double x, double... parameters) throws NoDataExceptionCompute the value of the function.- Specified by:
valuein interfaceParametricUnivariateFunction- Parameters:
x- Point for which the function value should be computed.parameters- Function parameters.- Returns:
- the value.
- Throws:
NoDataException
-
-