| StatisticsRanks Method (IEnumerableDouble, 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 public static double[] Ranks(
this IEnumerable<double> data,
RankDefinition definition = RankDefinition.Average
)
Parameters
- data
- Type: System.Collections.GenericIEnumerableDouble
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[Missing <returns> documentation for "M:MathNet.Numerics.Statistics.Statistics.Ranks(System.Collections.Generic.IEnumerable{System.Double},MathNet.Numerics.Statistics.RankDefinition)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableDouble. 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