Created
November 9, 2020 06:51
-
-
Save mattmazzola/e5890109918acf919e0527b885510984 to your computer and use it in GitHub Desktop.
Probabilities Base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createBaseExpectedPlayerProbabilityFn(exponentBase: number, exponentDenominator: number) { | |
return (ratingDifference: number): number => { | |
const exponent = ratingDifference / exponentDenominator | |
return 1 / (1 + Math.pow(exponentBase, exponent)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment