public class OneDimensionalSubFunction extends OneDimensionalFunction
| Constructor and Description |
|---|
OneDimensionalSubFunction(Function f)
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateFunction(double x)
Evaluates the function at position
x. |
void |
set(double[] current,
double[] d)
Sets the current values and direction.
|
evaluateFunction, findMin, getDimensionOfScopepublic OneDimensionalSubFunction(Function f)
f - the high dimensional functionset(double[], double[])public double evaluateFunction(double x)
throws EvaluationException
OneDimensionalFunctionx.evaluateFunction in class OneDimensionalFunctionx - the current positionf(x)EvaluationException - if there was a mistake during evaluation of the functionpublic void set(double[] current,
double[] d)
throws DimensionException
current - the current vectord - the direction along which the line search will be performedDimensionException - if there is something wrong with the dimension of a vector