|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.optimization.NegativeFunction
public class NegativeFunction
The Function -f for a given function f.
| Constructor Summary | |
|---|---|
NegativeFunction(Function f)
Creates the function f for which -f should be calculated. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NegativeFunction(Function f)
f - the function| Method Detail |
|---|
public double evaluateFunction(double[] x)
throws DimensionException,
EvaluationException
Functionx.
evaluateFunction in interface Functionx - the current vector
DimensionException - if dim(x) != n, with f: R^n -> R
EvaluationException - if there was a mistake in evaluating the functionpublic int getDimensionOfScope()
Function
getDimensionOfScope in interface Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||