public class LineBracketInterpolatorBrent extends AbstractLineBracketInterpolator<Evaluator<java.lang.Double,java.lang.Double>>
DEFAULT_TOLERANCE| Constructor and Description |
|---|
LineBracketInterpolatorBrent()
Creates a new instance of LineBracketInterpolatorBrent
|
| Modifier and Type | Method and Description |
|---|---|
double |
findMinimum(LineBracket bracket,
double minx,
double maxx,
Evaluator<java.lang.Double,java.lang.Double> function)
Finds the minimum of the bracket using the interpolation/extrapolation
routine, where the minimum must lie between the minx and maxx values on
the x-axis.
|
LineBracketInterpolatorGoldenSection |
getGoldenInterpolator()
Getter for goldenInterpolator
|
LineBracketInterpolatorParabola |
getParabolicInterpolator()
Getter for parabolicInterpolator
|
boolean |
hasSufficientPoints(LineBracket bracket)
Determines if the LineBracket contains a sufficient number/quality of
points to conduct the interpolation.
|
void |
setGoldenInterpolator(LineBracketInterpolatorGoldenSection goldenInterpolator)
Setter for goldenInterpolator
|
void |
setParabolicInterpolator(LineBracketInterpolatorParabola parabolicInterpolator)
Setter for parabolicInterpolator
|
getTolerance, setTolerancecloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic LineBracketInterpolatorBrent()
public double findMinimum(LineBracket bracket, double minx, double maxx, Evaluator<java.lang.Double,java.lang.Double> function)
LineBracketInterpolatorbracket - Bracket of pointsminx - Minimum x-axis value to search for the minimummaxx - Maximum x-axis value to search for the minimumfunction - Function to consider. The function, or gradient, may be evaluated to
generate enough output/slope samples to interpolate.public boolean hasSufficientPoints(LineBracket bracket)
LineBracketInterpolatorbracket - LineBracket to considerpublic LineBracketInterpolatorParabola getParabolicInterpolator()
public void setParabolicInterpolator(LineBracketInterpolatorParabola parabolicInterpolator)
parabolicInterpolator - Non-slope based parabolic interpolator.public LineBracketInterpolatorGoldenSection getGoldenInterpolator()
public void setGoldenInterpolator(LineBracketInterpolatorGoldenSection goldenInterpolator)
goldenInterpolator - Golden-section step interpolator.