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 doubleminimize(Function<Double,Double> f, double lower, double upper)Minimize.doubleminimize(Function<Double,Double> f, double startPosition, double lower, double upper)Doubleminimize(Function<Double,Double> function, Double startPosition)
-
-
-
Method Detail
-
minimize
public double minimize(Function<Double,Double> f, double startPosition, double lower, double upper)
- Specified by:
minimizein 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
-
-