mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-01 05:34:00 +00:00
Some reference updates and adding the needed array(...) scope to existing data for single team values
This commit is contained in:
@ -22,8 +22,8 @@ abstract class GaussianFactor extends Factor
|
||||
/// Sends the factor-graph message with and returns the log-normalization constant
|
||||
protected function sendMessageVariable(Message &$message, Variable &$variable)
|
||||
{
|
||||
$marginal = $variable->getValue();
|
||||
$messageValue = $message->getValue();
|
||||
$marginal = &$variable->getValue();
|
||||
$messageValue = &$message->getValue();
|
||||
$logZ = GaussianDistribution::logProductNormalization($marginal, $messageValue);
|
||||
$variable->setValue($marginal*$messageValue);
|
||||
return $logZ;
|
||||
|
Reference in New Issue
Block a user