Difference between revisions of "OrdinalRank Command"
From GeoGebra Manual
m |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |
{{command|statistics}} | {{command|statistics}} | ||
;OrdinalRank[ <List> ] | ;OrdinalRank[ <List> ] |
Revision as of 09:26, 3 August 2015
- OrdinalRank[ <List> ]
- Returns a list, whose i-th element is the rank of i-th element of list L (rank of element is its position in Sort[L]). If there are more equal elements in L which occupy positions from k to l in Sort[L], ranks from k to l are associated with these elements.
- Example:
OrdinalRank[{4, 1, 2, 3, 4, 2}]
returns {5, 1, 2, 4, 6, 3}OrdinalRank[{3, 2, 2, 1}]
returns {4, 2, 3, 1}
Note: Also see command: TiedRank