chickadee » statistics » average-rank

average-rank value sorted-valuesprocedure

returns the average position of given value in the list of sorted values: the rank is based from 1.

> (average-rank 2 '(1 2 2 3 4))
5/2