First time I got the two team TrueSkill calculator up and running

This commit is contained in:
Jeff Moser
2010-08-29 16:40:03 -04:00
parent 12a02b8403
commit a19f565dc9
6 changed files with 394 additions and 7 deletions

View File

@ -103,7 +103,7 @@ class TruncatedGaussianCorrectionFunctions
// the multiplicative correction of a double-sided truncated Gaussian with unit variance
public static function wWithinMarginScaled($teamPerformanceDifference, $drawMargin, $c)
{
return self::wWithinMargin(teamPerformanceDifference/c, drawMargin/c);
return self::wWithinMargin($teamPerformanceDifference/$c, $drawMargin/$c);
}
// From F#:
@ -119,7 +119,7 @@ class TruncatedGaussianCorrectionFunctions
return 1.0;
}
$vt = vWithinMargin($teamPerformanceDifferenceAbsoluteValue, $drawMargin);
$vt = self::vWithinMargin($teamPerformanceDifferenceAbsoluteValue, $drawMargin);
return $vt*$vt +
(