private class NonLinearConjugateGradientOptimizer.LineSearchFunction extends java.lang.Object implements UnivariateFunction
The function represented by this class is the dot product of the objective function gradient and the search direction. Its value is zero when the gradient is orthogonal to the search direction, i.e. when the objective function value is a local extremum along the search direction.
Modifier and Type | Field and Description |
---|---|
private double[] |
searchDirection
Search direction.
|
Constructor and Description |
---|
NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] searchDirection)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
value(double x)
Compute the value of the function.
|
public NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] searchDirection)
searchDirection
- search directionpublic double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.Copyright (c) 2003-2013 Apache Software Foundation