Calculates the rank of the value within a given data set using the specified order.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static int Rank(
	int[] data,
	double val,
	SortingType order
)
Visual Basic (Declaration)
Public Shared Function Rank ( _
	data As Integer(), _
	val As Double, _
	order As SortingType _
) As Integer
Visual C++
public:
static int Rank(
	array<int>^ data, 
	double val, 
	SortingType order
)

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array.
val
Type: System..::.Double
A value.
order
Type: CenterSpace.NMath.Stats..::.SortingType
Ascending or descending.

Return Value

Rank.

See Also