Click or drag to resize
Accord.NET (logo)

ToolsRank Method (Double, Boolean, Boolean, Boolean)

Gets the rank of a sample, often used with order statistics.

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double[] Rank(
	this double[] samples,
	out bool hasTies,
	bool alreadySorted = false,
	bool adjustForTies = true
)
Request Example View Source

Parameters

samples
Type: SystemDouble
hasTies
Type: SystemBoolean
alreadySorted (Optional)
Type: SystemBoolean
adjustForTies (Optional)
Type: SystemBoolean

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