public abstract class NumericalDifferentiableFunction extends DifferentiableFunction
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. |
findOneDimensionalMin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluateFunction, getDimensionOfScope
protected double eps
public NumericalDifferentiableFunction(double epsilon) throws IllegalArgumentException
NumericalDifferentiableFunction
.epsilon
- the epsilon used for the numerical differentiationIllegalArgumentException
- if epsilon = 0
public double[] evaluateGradientOfFunction(double[] x) throws DimensionException, EvaluationException
x
numerically.evaluateGradientOfFunction
in class DifferentiableFunction
x
- the current vectorFunction.getDimensionOfScope()
DimensionException
- if dim(x) != n
, with EvaluationException
- if there was something wrong during the evaluation of the
gradientDifferentiableFunction.evaluateGradientOfFunction(double[])