From 748b59896ba2f412b578e7cb5b2ed174e1a5404f Mon Sep 17 00:00:00 2001 From: Jeff Moser Date: Sun, 3 Oct 2010 16:54:06 -0400 Subject: [PATCH] Fixed minor Gaussian Within Factor bug. Two player and two team tests pass! :-) --- PHPSkills/TrueSkill/Factors/GaussianWithinFactor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPSkills/TrueSkill/Factors/GaussianWithinFactor.php b/PHPSkills/TrueSkill/Factors/GaussianWithinFactor.php index 91edf59..dd00aa9 100644 --- a/PHPSkills/TrueSkill/Factors/GaussianWithinFactor.php +++ b/PHPSkills/TrueSkill/Factors/GaussianWithinFactor.php @@ -44,7 +44,7 @@ class GaussianWithinFactor extends GaussianFactor return -GaussianDistribution::logProductNormalization($messageFromVariable, $message) + log($z); } - protected function updateMessage(Message &$message, Variable &$variable) + protected function updateMessageVariable(Message &$message, Variable &$variable) { $oldMarginal = clone $variable->getValue(); $oldMessage = clone $message->getValue();