mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
Fixed minor Gaussian Within Factor bug.
Two player and two team tests pass! :-)
This commit is contained in:
@ -44,7 +44,7 @@ class GaussianWithinFactor extends GaussianFactor
|
|||||||
return -GaussianDistribution::logProductNormalization($messageFromVariable, $message) + log($z);
|
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();
|
$oldMarginal = clone $variable->getValue();
|
||||||
$oldMessage = clone $message->getValue();
|
$oldMessage = clone $message->getValue();
|
||||||
|
Reference in New Issue
Block a user