public class GoldenSearch extends Object
Constructor and Description |
---|
GoldenSearch() |
Modifier and Type | Method and Description |
---|---|
static double |
minimize(double eps,
int maxIterations,
double a,
double b,
int pos,
Function f,
double... args)
Finds the local minimum of the function
f . |
public static double minimize(double eps, int maxIterations, double a, double b, int pos, Function f, double... args)
f
.eps
- the desired accuracy of the resultmaxIterations
- the maximum number of iterations to performa
- the left bound on the minimumb
- the right bound on the minimumpos
- the position of the argument array that should be used as the variable to alterf
- the function to find the minimize ofargs
- the array of variable values for the function, one of which will be altered in the searchpos
that produces the local minimaCopyright © 2017. All rights reserved.