Stats.KendallTau Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

KendallTau<T>(IList<T>, IList<T>) Returns Kendall's tau-b correlation coefficient between two sets of values.
KendallTau<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) 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.
C#
public static double KendallTau<T>(
	IList<T> values1,
	IList<T> values2
)
where T : Object, IComparable<T>

Parameters

values1  IList<T>
A list of values.
values2  IList<T>
A list of values.

Type Parameters

T

Return Value

Double
The Kendall tau correlation between the two sets of values.

Exceptions

ArgumentNullException

values1 is null.

-or-

values2 is null.

DimensionMismatchException

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.
C#
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

Double
The Kendall tau correlation between the two sets of values.

Exceptions

DimensionMismatchException

The length of values1 does not equal the length of values2.

See Also