public abstract class NumericalDifferentiableFunction extends DifferentiableFunction
. The gradient is computed numerically. Each partial
differentiation is computed by the formula
.| Modifier and Type | Field and Description |
|---|---|
protected double |
eps
The constant used in the computation of the gradient.
|
| Constructor and Description |
|---|
NumericalDifferentiableFunction(double epsilon)
Sets the value for epsilon for this
NumericalDifferentiableFunction. |
| Modifier and Type | Method and Description |
|---|---|
double[] |
evaluateGradientOfFunction(double[] x)
Evaluates the gradient of a function at a certain vector (in mathematical
sense)
x numerically. |
findOneDimensionalMinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateFunction, getDimensionOfScopeprotected double eps
public NumericalDifferentiableFunction(double epsilon)
throws IllegalArgumentException
NumericalDifferentiableFunction.epsilon - the epsilon used for the numerical differentiationIllegalArgumentException - if epsilon = 0public double[] evaluateGradientOfFunction(double[] x)
throws DimensionException,
EvaluationException
x numerically.evaluateGradientOfFunction in class DifferentiableFunctionx - the current vectorFunction.getDimensionOfScope()DimensionException - if dim(x) != n, with 
EvaluationException - if there was something wrong during the evaluation of the
gradientDifferentiableFunction.evaluateGradientOfFunction(double[])