Click or drag to resize
StatisticsRanks Method (IEnumerableNullableDouble, RankDefinition)
Evaluates the rank of each entry of the provided samples. The rank definition can be specified to be compatible with an existing system.

Namespace: MathNet.Numerics.Statistics
Assembly: MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
public static double[] Ranks(
	this IEnumerable<Nullable<double>> data,
	RankDefinition definition = RankDefinition.Average
)

Parameters

data
Type: System.Collections.GenericIEnumerableNullableDouble
The data sample sequence.
definition (Optional)
Type: MathNet.Numerics.StatisticsRankDefinition
Rank definition, to choose how ties should be handled and what product/definition it should be consistent with

Return Value

Type: Double

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableNullableDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also