Difference between revisions of "Thread:User talk:Chase-san/Approximate ELO/reply (3)"
Jump to navigation
Jump to search
(Reply to Approximate ELO) |
(Added Glicko-2) |
||
Line 1: | Line 1: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
− | static final double | + | static final double DRIFTED_ELO_AVERAGE = -2397.92418506835; |
+ | |||
+ | static final double DRIFTED_GLICKO2_AVERAGE = 1468.99474237645; | ||
static final double DESIRED_AVERAGE = 1600; | static final double DESIRED_AVERAGE = 1600; | ||
static double calculateElo(double driftedElo) { | static double calculateElo(double driftedElo) { | ||
− | return driftedElo - | + | return driftedElo - DRIFTED_ELO_AVERAGE + DESIRED_AVERAGE; |
+ | } | ||
+ | |||
+ | static double calculateGlicko2(double driftedGlicko2) { | ||
+ | return driftedGlicko2 - DRIFTED_GLICKO2_AVERAGE + DESIRED_AVERAGE; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 16:21, 29 October 2012
static final double DRIFTED_ELO_AVERAGE = -2397.92418506835;
static final double DRIFTED_GLICKO2_AVERAGE = 1468.99474237645;
static final double DESIRED_AVERAGE = 1600;
static double calculateElo(double driftedElo) {
return driftedElo - DRIFTED_ELO_AVERAGE + DESIRED_AVERAGE;
}
static double calculateGlicko2(double driftedGlicko2) {
return driftedGlicko2 - DRIFTED_GLICKO2_AVERAGE + DESIRED_AVERAGE;
}