Skip to content

Commit

Permalink
lower sensitivity cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 23, 2020
1 parent 070ae58 commit dd27284
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/League.elm
Expand Up @@ -275,17 +275,23 @@ playInMatches =
5


{-| Thought: long-term, it may be better to say the 90th percentile of
competitors gets the insensitive k-factor instead of defining a cutoff.
-}
kFactor : Player -> Int
kFactor player =
if player.matches < playInMatches then
-- players who are new to the league should move around more so that
-- they can get ranked closer to their actual correct position sooner.
Elo.sensitiveKFactor * 2

else if player.rating <= Elo.initialRating * 2 then
else if player.rating <= round (toFloat Elo.initialRating * 1.1) then
-- players who have been around a while should still be able to easily
-- move up in the rankings if it turns out they've been consistently
-- underrated.
--
-- The threshold here may seem a little low here but it's only 4 of
-- the 47 items in the list I use elo-anything for.
Elo.sensitiveKFactor

else
Expand Down

0 comments on commit dd27284

Please sign in to comment.