org.apache.commons.math3.optim.nonlinear.scalar.gradient
private class NonLinearConjugateGradientOptimizer.LineSearchFunction extends 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[] |
currentPoint
Current point.
|
private double[] |
searchDirection
Search direction.
|
Constructor and Description |
---|
NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] point,
double[] direction) |
private final double[] currentPoint
private final double[] searchDirection
public NonLinearConjugateGradientOptimizer.LineSearchFunction(double[] point, double[] direction)
point
- Current point.direction
- Search direction.public 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