Determines whether an interval is within an algorithm's
requested tolerance.
Namespace:
Extreme.Mathematics.Algorithms
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool IsIntervalWithinTolerance(
IterativeAlgorithm algorithm,
double lowerBound,
double upperBound
)
Public Shared Function IsIntervalWithinTolerance (
algorithm As IterativeAlgorithm,
lowerBound As Double,
upperBound As Double
) As Boolean
public:
static bool IsIntervalWithinTolerance(
IterativeAlgorithm^ algorithm,
double lowerBound,
double upperBound
)
static member IsIntervalWithinTolerance :
algorithm : IterativeAlgorithm *
lowerBound : float *
upperBound : float -> bool
Parameters
- algorithm
- Type: Extreme.Mathematics.AlgorithmsIterativeAlgorithm
A class that implements
the IterativeAlgorithm interface. - lowerBound
- Type: SystemDouble
The lower bound of the
interval. - upperBound
- Type: SystemDouble
The upper bound of the
interval.
Return Value
Type:
Boolean if the interval is within the
requested tolerance; otherwise
.
This method uses the properties of the
provided IterativeAlgorithm object.
In particular, the
ConvergenceCriterion,
and either or both of
AbsoluteTolerance
and RelativeTolerance.
If lowerBound is greater
than upperBound, this method
always returns .
Reference