diff --git a/PHPSkills/TrueSkill/Factors/GaussianWeightedSumFactor.php b/PHPSkills/TrueSkill/Factors/GaussianWeightedSumFactor.php index 977a2cf..61f789f 100644 --- a/PHPSkills/TrueSkill/Factors/GaussianWeightedSumFactor.php +++ b/PHPSkills/TrueSkill/Factors/GaussianWeightedSumFactor.php @@ -1,8 +1,6 @@ _weights[$messageIndex], - $this->_weightsSquared[$messageIndex], - $updatedMessages, - $updatedVariables); + return $this->updateHelper($this->_weights[$messageIndex], + $this->_weightsSquared[$messageIndex], + $updatedMessages, + $updatedVariables); } private static function createName($sumVariable, $variablesToSum, $variableWeights)