Convert a messy ranking like [1,3,5,4] to [1,2,4,3]
- Parameters:
ranking_list (list) - the list of ranks that will be normalized
ties - Select how to handle ties. Accepted values are:
-
'minimize', which reserves only one rank position for all
tied items of the same rank
-
'floor', which reserves all rank positions for all tied items
of the same rank, but sets their value to the minimum tied
rank position
-
'ceiling', which reserves all rank positions for all tied
items of the same rank, but sets their value to the maximum
tied rank position
-
'middle', which reserves all rank positions for all tied
items of the same rank, but sets their value to the middle of
the tied rank positions
inflate_ties (string)
- Returns: [float, ...]
- a new normalized list of ranks
|