jsat.math.optimization.oned
Class GoldenSearch
- java.lang.Object
-
- jsat.math.optimization.oned.GoldenSearch
-
public class GoldenSearch extends java.lang.ObjectThe class provides an implementation of the Golden Search method of function minimization.
-
-
Constructor Summary
Constructors Constructor and Description GoldenSearch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublefindMin(double min, double max, Function1D f, double eps, int maxSteps)Attempts to numerically find the valuexthat minimizes the one dimensional functionf(x)in the range[min, max].
-
-
-
Method Detail
-
findMin
public static double findMin(double min, double max, Function1D f, double eps, int maxSteps)Attempts to numerically find the valuexthat minimizes the one dimensional functionf(x)in the range[min, max].- Parameters:
min- the minimum of the search rangemax- the maximum of the search rangef- the one dimensional function to minimizeeps- the desired accuracy of the returned valuemaxSteps- the maximum number of search steps to take- Returns:
- the value
xthat appears to minimizef(x)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG