From f5303ddd0a07b6becf4364276a25998cb6efc702 Mon Sep 17 00:00:00 2001 From: Wok Date: Thu, 7 Mar 2024 15:22:26 +0100 Subject: [PATCH] README: reformat SteamDB's formula --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 858f4d0..69517d1 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,8 @@ return (C * m + game.positiveVotes) / ( C + game.votes) ; const C = 1 ; const m = 0.50 ; const p = game.positiveVotes / game.votes ; -return p + (m-p) * (C+game.votes)**Math.log10(m) ; +const alpha = (C+game.votes) ** Math.log10(m) ; +return alpha*m + (1-alpha)*p ; ``` ## Appendix: data