org.apache.commons.math3.analysis.differentiation
public class GradientFunction extends java.lang.Object implements MultivariateVectorFunction
The vectorial components of the function represent the derivatives with respect to each function parameters.
Modifier and Type | Field and Description |
---|---|
private MultivariateDifferentiableFunction |
f
Underlying real-valued function.
|
Constructor and Description |
---|
GradientFunction(MultivariateDifferentiableFunction f)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
value(double[] point)
Compute the value for the function at the given point.
|
private final MultivariateDifferentiableFunction f
public GradientFunction(MultivariateDifferentiableFunction f)
f
- underlying real-valued functionpublic double[] value(double[] point) throws java.lang.IllegalArgumentException
value
in interface MultivariateVectorFunction
point
- point at which the function must be evaluatedjava.lang.IllegalArgumentException
- if points dimension is wrongCopyright (c) 2003-2013 Apache Software Foundation