|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.algorithms.optimization.DifferentiableFunction
de.jstacs.algorithms.optimization.NegativeDifferentiableFunction
public class NegativeDifferentiableFunction
The negative function -f
for a given
DifferentiableFunction
f
.
Constructor Summary | |
---|---|
NegativeDifferentiableFunction(DifferentiableFunction f)
Creates the DifferentiableFunction f for which
-f should be calculated. |
Method Summary | |
---|---|
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 . |
Methods inherited from class de.jstacs.algorithms.optimization.DifferentiableFunction |
---|
findOneDimensionalMin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NegativeDifferentiableFunction(DifferentiableFunction f)
DifferentiableFunction
f
for which
-f
should be calculated.
f
- the DifferentiableFunction
Method Detail |
---|
public double evaluateFunction(double[] x) throws DimensionException, EvaluationException
Function
x
.
x
- the current vector
DimensionException
- 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 vector
Function.getDimensionOfScope()
DimensionException
- if dim(x) != n
, with EvaluationException
- if there was something wrong during the evaluation of the
gradientFunction.getDimensionOfScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |