Click or drag to resize

OrdinalRankCalculatorTGetRanks Method (ICollectionDouble)

Get ordinal rank of all objects using factor values. Ordinal rank - order in array sorted by factor. Descending order. Minimal factor value gets maximal rank. Maximal factor value gets rank 1.

Namespace:  FinAnalysis.Ranging
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public static double[] GetRanks(
	ICollection<double> factor
)

Parameters

factor
Type: System.Collections.GenericICollectionDouble
Collection of factor values. factor[i] - value of factor on i-th object.

Return Value

Type: Double
Array with ranks. array[i] - rank of i-th object.
See Also