|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.optim.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 double |
relativeThreshold
Relative tolerance threshold. |
| Constructor Summary | |
|---|---|
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 final double relativeThreshold
private final double absoluteThreshold
| Constructor Detail |
|---|
public AbstractConvergenceChecker(double relativeThreshold,
double absoluteThreshold)
relativeThreshold - relative tolerance thresholdabsoluteThreshold - absolute tolerance threshold| Method 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 | ||||||||