Initializes a new instance of the DoubleComparer class.

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	tolerance As Double _
)
C#
public DoubleComparer (
	double tolerance
)
C++
public:
DoubleComparer (
	double tolerance
)

Parameters

tolerance (System.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 Epsilon.