Class PolynomialFunction.Parametric
java.lang.Object
org.hipparchus.analysis.polynomials.PolynomialFunction.Parametric
- All Implemented Interfaces:
ParametricUnivariateFunction
- Enclosing class:
- PolynomialFunction
public static class PolynomialFunction.Parametric
extends Object
implements ParametricUnivariateFunction
Dedicated parametric polynomial class.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Parametric
public Parametric()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 3.0
-
-
Method Details
-
gradient
public double[] gradient(double x, double... parameters) Compute the gradient of the function with respect to its parameters.- Specified by:
gradient
in interfaceParametricUnivariateFunction
- Parameters:
x
- Point for which the function value should be computed.parameters
- Function parameters.- Returns:
- the value.
-
value
Compute the value of the function.- Specified by:
value
in interfaceParametricUnivariateFunction
- Parameters:
x
- Point for which the function value should be computed.parameters
- Function parameters.- Returns:
- the value.
- Throws:
MathIllegalArgumentException
-