PAIR
- Type of (point, value) pair.@Deprecated public abstract class AbstractConvergenceChecker<PAIR> extends java.lang.Object implements ConvergenceChecker<PAIR>
Modifier and Type | Field and Description |
---|---|
private double |
absoluteThreshold
Deprecated.
Absolute tolerance threshold.
|
private static double |
DEFAULT_ABSOLUTE_THRESHOLD
Deprecated.
in 3.1 (to be removed in 4.0) because this value is too small
to be useful as a default (cf. MATH-798).
|
private static double |
DEFAULT_RELATIVE_THRESHOLD
Deprecated.
in 3.1 (to be removed in 4.0) because this value is too small
to be useful as a default (cf. MATH-798).
|
private double |
relativeThreshold
Deprecated.
Relative tolerance threshold.
|
Constructor and Description |
---|
AbstractConvergenceChecker()
Deprecated.
in 3.1 (to be removed in 4.0). Convergence thresholds are
problem-dependent. As this class is intended for users who want to set
their own convergence criterion instead of relying on an algorithm's
default procedure, they should also set the thresholds appropriately
(cf. MATH-798).
|
AbstractConvergenceChecker(double relativeThreshold,
double absoluteThreshold)
Deprecated.
Build an instance with a specified thresholds.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
converged(int iteration,
PAIR previous,
PAIR current)
Deprecated.
Check if the optimization algorithm has converged.
|
double |
getAbsoluteThreshold()
Deprecated.
|
double |
getRelativeThreshold()
Deprecated.
|
@Deprecated private static final double DEFAULT_RELATIVE_THRESHOLD
@Deprecated private static final double DEFAULT_ABSOLUTE_THRESHOLD
private final double relativeThreshold
private final double absoluteThreshold
@Deprecated public AbstractConvergenceChecker()
public AbstractConvergenceChecker(double relativeThreshold, double absoluteThreshold)
relativeThreshold
- relative tolerance thresholdabsoluteThreshold
- absolute tolerance thresholdpublic 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.Copyright (c) 2003-2013 Apache Software Foundation