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. |
findOneDimensionalMinpublic NegativeDifferentiableFunction(DifferentiableFunction f)
f - the DifferentiableFunctionpublic double evaluateFunction(double[] x)
throws DimensionException,
EvaluationException
Functionx.x - the current vectorDimensionException - if dim(x) != n, with 
EvaluationException - if there was something wrong during the evaluation of the
functionpublic int getDimensionOfScope()
FunctionFunction.n with

public double[] evaluateGradientOfFunction(double[] x)
throws DimensionException,
EvaluationException
DifferentiableFunctionx, i.e.,
.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
gradientFunction.getDimensionOfScope()