Compares the observations at the specified position.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Function Compare ( _ x As Integer, _ y As Integer _ ) As Integer |
| C# |
|---|
public override int Compare ( int x, int y ) |
| C++ |
|---|
public: virtual int Compare ( int x, int y ) override |
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
| Value | Meaning |
|---|---|
| Less than zero | The observation at index x is less than
the observation at index y.
-or- The observation at index x is missing. |
| Zero | The observation at index x is equal to the observation at index y. |
| Greater than zero | The observation at index x is less than
the observation at index y -or- The observation at index x is missing. . |