psifr.stats.percentile_rank#
- psifr.stats.percentile_rank(actual, possible)#
Get percentile rank of a score compared to possible scores.
- Parameters:
- Returns:
rank – Rank scaled to range from 0 (low score) to 1 (high score).
- Return type:
Examples
>>> from psifr import stats >>> actual = 3 >>> possible = [1, 2, 2, 2, 3] >>> stats.percentile_rank(actual, possible) 1.0