Skip to content

Commit

Permalink
Fix < instead of <= bug in glicko2 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jan 2, 2023
1 parent 661d844 commit 4c677e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goratings/math/glicko2.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def f(x: float) -> float:
while abs(B - A) > EPSILON and safety > 0:
C = A + (A - B) * fA / (fB - fA)
fC = f(C)
if fC * fB < 0:
if fC * fB <= 0:
A = B
fA = fB
else:
Expand Down

0 comments on commit 4c677e3

Please sign in to comment.