Compares the observations at the specified position.

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

Syntax

Visual Basic (Declaration)
Public Overridable Function Compare ( _
	x As Integer, _
	y As Integer _
) As Integer
C#
public virtual int Compare (
	int x,
	int y
)
C++
public:
virtual int Compare (
	int x, 
	int y
)

Parameters

x (System.Int32)
The zero-based index of the first observation to compare.
y (System.Int32)
The zero-based index of the second observation to compare.

Return Value

ValueMeaning
Less than zeroThe observation at index x is less than the observation at index y.

-or-

The observation at index x is missing.

ZeroThe observation at index x is equal to the observation at index y.
Greater than zeroThe observation at index x is less than the observation at index y

-or-

The observation at index x is missing.

.

Exceptions

ExceptionCondition
InvalidOperationExceptionAlways thrown.