Skip to content

rank_avg

Rank of a value (ties get the average of the ranks).

v = rank_avg(number, ref, order)

Like rank_eq but tied values get the average of the ranks they would have received with no ties (the so-called fractional ranking).

rank_avg(7, [3 5 7 7 9]) % 2.5
  • rank_eq — Rank of a value (ties get the same rank).