|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.tdouble.algo.solver.AbstractDoubleIterationMonitor
cern.colt.matrix.tdouble.algo.solver.DefaultDoubleIterationMonitor
public class DefaultDoubleIterationMonitor
Default iteration monitor. This tester checks declares convergence if the absolute value of the residual norm is sufficiently small, or if the relative decrease is small. Divergence is decleared if too many iterations are spent, or the residual has grown too much. NaNs will also cause divergence to be flagged.
Constructor Summary | |
---|---|
DefaultDoubleIterationMonitor()
Constructor for DefaultIterationMonitor. |
|
DefaultDoubleIterationMonitor(int maxIter,
double rtol,
double atol,
double dtol)
Constructor for DefaultIterationMonitor |
Method Summary | |
---|---|
double |
getAbsoluteTolerance()
Returns the absolute convergence tolerance |
double |
getDivergenceTolerance()
Returns the relative divergence tolerance |
int |
getMaxIterations()
Returns maximum number of iterations to permit |
double |
getRelativeTolerance()
Returns the relative convergence tolerance |
void |
setAbsoluteTolerance(double atol)
Sets the absolute convergence tolerance |
void |
setDivergenceTolerance(double dtol)
Sets the relative divergence tolerance |
void |
setMaxIterations(int maxIter)
Sets maximum number of iterations to permit |
void |
setRelativeTolerance(double rtol)
Sets the relative convergence tolerance |
Methods inherited from class cern.colt.matrix.tdouble.algo.solver.AbstractDoubleIterationMonitor |
---|
converged, converged, converged, converged, getIterationReporter, getNormType, isFirst, iterations, next, residual, setFirst, setIterationReporter, setNormType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDoubleIterationMonitor(int maxIter, double rtol, double atol, double dtol)
maxIter
- Maximum number of iterationsrtol
- Relative convergence tolerance (to initial residual)atol
- Absolute convergence tolerancedtol
- Relative divergence tolerance (to initial residual)public DefaultDoubleIterationMonitor()
Method Detail |
---|
public void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationspublic int getMaxIterations()
public void setRelativeTolerance(double rtol)
rtol
- relative convergence tolerance (to initial residual)public double getRelativeTolerance()
public void setAbsoluteTolerance(double atol)
atol
- absolute convergence tolerancepublic double getAbsoluteTolerance()
public void setDivergenceTolerance(double dtol)
dtol
- relative divergence tolerance (to initial residual)public double getDivergenceTolerance()
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |