|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.solver.iterative.AbsoluteTolerance
public class AbsoluteTolerance
The stopping criteria is that the norm of the residual r is equal to
or smaller than the specified tolerance, that is,
||r||2 ≤ tolerance
| Field Summary | |
|---|---|
static double |
DEFAULT_TOLERANCE
default tolerance |
| Constructor Summary | |
|---|---|
AbsoluteTolerance()
Create an instance which uses DEFAULT_TOLERANCE. |
|
AbsoluteTolerance(double tolerance)
Create an instance which uses the specified tolerance. |
|
| Method Summary | |
|---|---|
boolean |
updateResidualNorm(double norm)
Check if the updated residual satisfies the tolerance criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_TOLERANCE
| Constructor Detail |
|---|
public AbsoluteTolerance()
DEFAULT_TOLERANCE.
public AbsoluteTolerance(double tolerance)
tolerance.
tolerance - the residual norm criteria| Method Detail |
|---|
public boolean updateResidualNorm(double norm)
Tolerance
updateResidualNorm in interface Tolerancenorm - the norm of the updated residual
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||