Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_TOLERANCE
default tolerance
|
Constructor and Description |
---|
AbsoluteTolerance()
Construct an instance with
DEFAULT_TOLERANCE . |
AbsoluteTolerance(double tolerance)
Construct an instance with specified
tolerance . |
Modifier and Type | Method and Description |
---|---|
boolean |
isResidualSmall(double norm)
Checks if the updated residual satisfies the tolerance criteria.
|
public static final double DEFAULT_TOLERANCE
public AbsoluteTolerance()
DEFAULT_TOLERANCE
.public AbsoluteTolerance(double tolerance)
tolerance
.tolerance
- the residual norm criteriapublic boolean isResidualSmall(double norm)
Tolerance
isResidualSmall
in interface Tolerance
norm
- the norm of the updated residualtrue
if the residual norm is small enoughCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.