public class OneDimensionalSubFunction extends OneDimensionalFunction
| Constructor and Description |
|---|
OneDimensionalSubFunction(Function f,
double[] current,
double[] d)
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateFunction(double x)
Evaluates the function at position
x. |
evaluateFunction, findMin, getDimensionOfScopepublic OneDimensionalSubFunction(Function f, double[] current, double[] d) throws DimensionException
f - the high dimensional functioncurrent - the current vectord - the direction along which the line search will be performedDimensionException - if there is something wrong with the dimension of a vectorpublic 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 function