PHP Glicko2 Lib

Description

The Glicko-2 system is designed to rank competitors in games and sports. It has better reliability and convergence metrics ratings than Elo or Glicko.

Documentation

The library works independently of the competitors in the system. One, some, or all of the competitors can be evaluated based on their existing metrics and global parameters for the competition.
There are only three sets of operations available:

Match/Comparison operations (AddWin(), AddLoss()); then

Match rating calculation (Update()); and finally

Variable output. You can use these for advanced inspection, or simply store them post-calculation and pass them back in pre-calculation.

$rating

$rd

$sigma

$mu

$phi

$tau

It is important to note that every player should have Update() run for each period, regardless of their participation during that time period or not. Update()'ing non-participant players updates their RD values (rating deviation -- the measure of the reliability of the player's score).