mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 20:34:28 +00:00
Additional Psalm warnings resolving
This commit is contained in:
@ -17,11 +17,11 @@ class GaussianPriorFactor extends GaussianFactor
|
||||
|
||||
public function __construct(float $mean, float $variance, Variable $variable)
|
||||
{
|
||||
parent::__construct(sprintf('Prior value going to %s', $variable));
|
||||
parent::__construct(sprintf('Prior value going to %s', (string)$variable));
|
||||
$this->newMessage = new GaussianDistribution($mean, sqrt($variance));
|
||||
$newMessage = new Message(
|
||||
GaussianDistribution::fromPrecisionMean(0, 0),
|
||||
sprintf('message from %s to %s', $this, $variable)
|
||||
sprintf('message from %s to %s', (string)$this, (string)$variable)
|
||||
);
|
||||
|
||||
$this->createVariableToMessageBindingWithMessage($variable, $newMessage);
|
||||
|
Reference in New Issue
Block a user