mirror of
https://github.com/avitex/elixir-glicko
synced 2024-12-22 00:19:58 +00:00
Update algorithm to match the latest Glicko-2 documentation
On 2022-03-22, the Glicko-2 algorithm was updated, with the following line being added to the [Glicko web page][1]: > This document has been revised on March 22, 2022, to replace a "<" > with "<=" in item 4(b) of Step 5 (page 3). See the [Glicko-2 document][2] for details. Tests for this change are missing, as at the time of writing I couldn't figure out a test that only made use of the current public interface. [1]: http://glicko.net/glicko.html [2]: http://glicko.net/glicko/glicko2.pdf
This commit is contained in:
parent
172f8dd8d0
commit
9cb997e2c1
@ -268,7 +268,7 @@ defmodule Glicko do
|
||||
fc = calc_f(alpha, delta, player_pre_rd_sq, variance_est, sys_const, c)
|
||||
|
||||
{a, fa} =
|
||||
if fc * fb < 0 do
|
||||
if fc * fb <= 0 do
|
||||
{b, fb}
|
||||
else
|
||||
{a, fa / 2}
|
||||
|
Loading…
Reference in New Issue
Block a user