|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.optimization.AbstractConvergenceChecker<PAIR>
PAIR
- Type of (point, value) pair.public abstract class AbstractConvergenceChecker<PAIR>
Base class for all convergence checker implementations.
Field Summary | |
---|---|
private double |
absoluteThreshold
Absolute tolerance threshold. |
private static double |
DEFAULT_ABSOLUTE_THRESHOLD
Default absolute threshold. |
private static double |
DEFAULT_RELATIVE_THRESHOLD
Default relative threshold. |
private double |
relativeThreshold
Relative tolerance threshold. |
Constructor Summary | |
---|---|
AbstractConvergenceChecker()
Build an instance with default thresholds. |
|
AbstractConvergenceChecker(double relativeThreshold,
double absoluteThreshold)
Build an instance with a specified thresholds. |
Method Summary | |
---|---|
abstract boolean |
converged(int iteration,
PAIR previous,
PAIR current)
Check if the optimization algorithm has converged. |
double |
getAbsoluteThreshold()
|
double |
getRelativeThreshold()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final double DEFAULT_RELATIVE_THRESHOLD
private static final double DEFAULT_ABSOLUTE_THRESHOLD
private final double relativeThreshold
private final double absoluteThreshold
Constructor Detail |
---|
public AbstractConvergenceChecker()
public AbstractConvergenceChecker(double relativeThreshold, double absoluteThreshold)
relativeThreshold
- relative tolerance thresholdabsoluteThreshold
- absolute tolerance thresholdMethod Detail |
---|
public double getRelativeThreshold()
public double getAbsoluteThreshold()
public abstract boolean converged(int iteration, PAIR previous, PAIR current)
converged
in interface ConvergenceChecker<PAIR>
iteration
- Current iteration.previous
- Best point in the previous iteration.current
- Best point in the current iteration.
true
if the algorithm is considered to have converged.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |