Constructor and Description |
---|
NegativeFunction(Function f)
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateFunction(double[] x)
Evaluates the function at a certain vector (in mathematical sense)
x . |
int |
getDimensionOfScope()
Returns the dimension of the scope of the
Function . |
public double evaluateFunction(double[] x) throws DimensionException, EvaluationException
Function
x
.evaluateFunction
in interface Function
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
.getDimensionOfScope
in interface Function
n
with