Class GoldenSectionMinimizer1D
- java.lang.Object
-
- com.opengamma.strata.math.impl.minimization.GoldenSectionMinimizer1D
-
public class GoldenSectionMinimizer1D extends Object implements ScalarMinimizer
-
-
Constructor Summary
Constructors Constructor Description GoldenSectionMinimizer1D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
minimize(Function<Double,Double> f, double lower, double upper)
Minimize.double
minimize(Function<Double,Double> f, double startPosition, double lower, double upper)
Double
minimize(Function<Double,Double> function, Double startPosition)
-
-
-
Method Detail
-
minimize
public double minimize(Function<Double,Double> f, double startPosition, double lower, double upper)
- Specified by:
minimize
in interfaceScalarMinimizer
- Parameters:
f
- The function to minimize, not nullstartPosition
- The start positionlower
- The lower boundupper
- The upper bound, must be greater than the upper bound- Returns:
- The minimum
-
minimize
public double minimize(Function<Double,Double> f, double lower, double upper)
Minimize.- Parameters:
f
- the functionlower
- the lower boundupper
- the upper bound- Returns:
- the result
-
-