Package org.hipparchus.optim
Class AbstractConvergenceChecker<P>
java.lang.Object
org.hipparchus.optim.AbstractConvergenceChecker<P>
- Type Parameters:
P- Type of (point, value) pair.
- All Implemented Interfaces:
ConvergenceChecker<P>
- Direct Known Subclasses:
SimplePointChecker,SimpleUnivariateValueChecker,SimpleValueChecker,SimpleVectorValueChecker
Base class for all convergence checker implementations.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConvergenceChecker(double relativeThreshold, double absoluteThreshold) Build an instance with a specified thresholds. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet absolute threshold.doubleGet relative threshold.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hipparchus.optim.ConvergenceChecker
converged
-
Constructor Details
-
AbstractConvergenceChecker
protected AbstractConvergenceChecker(double relativeThreshold, double absoluteThreshold) Build an instance with a specified thresholds.- Parameters:
relativeThreshold- relative tolerance thresholdabsoluteThreshold- absolute tolerance threshold
-
-
Method Details
-
getRelativeThreshold
public double getRelativeThreshold()Get relative threshold.- Returns:
- the relative threshold.
-
getAbsoluteThreshold
public double getAbsoluteThreshold()Get absolute threshold.- Returns:
- the absolute threshold.
-