public class GoldenSection
extends java.lang.Object
Constructor | Description |
---|---|
GoldenSection(double tol,
double ftol) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
double |
optimize(SingleDoubleValue v,
double min,
double max) |
Optimizes the input
|
public GoldenSection(double tol, double ftol)
tol
- Optimize the inputs to this toleranceftol
- Optimize the value to this tolerancepublic double optimize(SingleDoubleValue v, double min, double max)
v
- The functionmin
- The minimum allowed input valuemax
- The maximum allowed input value