From 683beea4a14c6f3d43e81a33b2d2d80ddb106621 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Mon, 8 Apr 2013 22:06:57 -0400 Subject: [PATCH] Make percentile calculations 1-(p-1)/(n-1). --- xonstat/views/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/views/player.py b/xonstat/views/player.py index c023ba4..e3b3853 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -346,7 +346,7 @@ def get_ranks(player_id): for row in raw_ranks: rank = Rank(rank=row.rank, max_rank=row.max_rank, - percentile=100 - 100*float(row.rank)/row.max_rank, + percentile=100 - 100*float(row.rank-1)/(row.max_rank-1), game_type_cd=row.game_type_cd) -- 2.39.2