public class NegativeDifferentiableFunction extends DifferentiableFunction
Constructor and Description |
---|
NegativeDifferentiableFunction(DifferentiableFunction f)
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateFunction(double[] x)
Evaluates the function at a certain vector (in mathematical sense)
x . |
double[] |
evaluateGradientOfFunction(double[] x)
Evaluates the gradient of a function at a certain vector (in mathematical
sense)
x , i.e.,
![]() |
int |
getDimensionOfScope()
Returns the dimension of the scope of the
Function . |
findOneDimensionalMin
public NegativeDifferentiableFunction(DifferentiableFunction f)
f
- the DifferentiableFunction
public double evaluateFunction(double[] x) throws DimensionException, EvaluationException
Function
x
.x
- the current vectorDimensionException
- if dim(x) != n
, with EvaluationException
- if there was something wrong during the evaluation of the
functionpublic int getDimensionOfScope()
Function
Function
.n
with
public double[] evaluateGradientOfFunction(double[] x) throws DimensionException, EvaluationException
DifferentiableFunction
x
, i.e.,
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
gradientFunction.getDimensionOfScope()