OrdinalRankCalculatorTGetRanks Method (ICollectionDouble, RankingType, Double) |
Get ordinal rank of all objects using factor values.
Ordinal rank - order in array sorted by factor.
Note: Equal factors gets equal ranks. Check maxRank for maximal assigned rank.
Namespace:
FinAnalysis.Ranging
Assembly:
FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax public static double[] GetRanks(
ICollection<double> factor,
RankingType order,
ref double maxRank
)
Parameters
- factor
- Type: System.Collections.GenericICollectionDouble
Collection of factor values. factor[i] - value of factor on i-th object. - order
- Type: FinAnalysis.RangingRankingType
Type of Ranking (Sorting order). - maxRank
- Type: SystemDouble
Maximal assigned rank.
Return Value
Type:
Double Array with ranks. array[i] - rank of i-th object.
See Also