Calculates Spearman's Rho for the given data sets.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static double Spearmans( int[] data1, int[] data2 ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Spearmans ( _ data1 As Integer(), _ data2 As Integer() _ ) As Double |
| Visual C++ |
|---|
public: static double Spearmans( array<int>^ data1, array<int>^ data2 ) |
Parameters
- data1
- Type: array<
System..::.Int32
>[]()[]
First array.
- data2
- Type: array<
System..::.Int32
>[]()[]
Second array.
Return Value
Spearman's Rho.
Remarks
Equivalent to the Pearson correlation using ranks.