Double Comparer Constructor
Initializes a new instance of the
DoubleComparer class.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public DoubleComparer(
double tolerance
)
Parameters
- tolerance Double
- The relative tolerance.
Remarks
Two numbers are considered equal when the absolute value of their difference is less than the tolerance times the absolute value of the largest of the two numbers.
A common value for the tolerance is around 10 times the machine precision.