Skip to content

Commit

Permalink
feat: update inequality in step 5.4
Browse files Browse the repository at this point in the history
This patch follows the 2022-03-22 update to the Glicko-2 algorithm:

    This document has been revised on March 22, 2022, to replace a "<"
    with "<=" in item 4(b) of Step 5 (page 3).
  • Loading branch information
kenany committed Apr 26, 2023
1 parent ac254b3 commit 72d4996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function computeVolatility(sigma, phi, v, delta, options) {
const c = a + (a - b) * fa / (fb - fa);
const fc = f(c);

if (fc * fb < 0) {
if (fc * fb <= 0) {
a = b;
fa = fb;
}
Expand Down

0 comments on commit 72d4996

Please sign in to comment.