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,17 +22,17 @@ class GaussianGreaterThanFactor extends GaussianFactor
|
||||
|
||||
public function __construct($epsilon, Variable &$variable)
|
||||
{
|
||||
parent::_construct("{0} > {1:0.000}");
|
||||
parent::__construct("{0} > {1:0.000}");
|
||||
$this->_epsilon = $epsilon;
|
||||
$this->createVariableToMessageBinding($variable);
|
||||
}
|
||||
|
||||
public function getLogNormalization()
|
||||
{
|
||||
$vars = $this->getVariables();
|
||||
$marginal = $vars[0]->getValue();
|
||||
$messages = $this->getMessages();
|
||||
$message = $messages[0]->getValue();
|
||||
$vars = &$this->getVariables();
|
||||
$marginal = &$vars[0]->getValue();
|
||||
$messages = &$this->getMessages();
|
||||
$message = &$messages[0]->getValue();
|
||||
$messageFromVariable = GaussianDistribution::divide($marginal, $message);
|
||||
return -GaussianDistribution::logProductNormalization($messageFromVariable, $message)
|
||||
+
|
||||
|
Reference in New Issue
Block a user