Stats.Kendall Tau Method
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Kendall | Returns Kendall's tau-b correlation coefficient between two sets of values. |
Kendall | Returns Kendall's tau-b correlation coefficient between two sets of values. |
KendallTau<T>(IList<T>, IList<T>)
Returns Kendall's tau-b correlation coefficient between two sets of values.
public static double KendallTau<T>(
IList<T> values1,
IList<T> values2
)
where T : Object, IComparable<T>
Parameters
Type Parameters
- T
Return Value
DoubleThe Kendall tau correlation between the two sets of values.
Exceptions
Argument | values1 is null. -or- values2 is null. |
Dimension | The length of values1 does not equal the length of values2. |
KendallTau<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)
Returns Kendall's tau-b correlation coefficient between two sets of values.
public static double KendallTau<T>(
ReadOnlySpan<T> values1,
ReadOnlySpan<T> values2
)
where T : Object, IComparable<T>
Parameters
- values1 ReadOnlySpan<T>
- A span of values.
- values2 ReadOnlySpan<T>
- A span of values.
Type Parameters
- T
Return Value
DoubleThe Kendall tau correlation between the two sets of values.
Exceptions
Dimension | The length of values1 does not equal the length of values2. |