Even less strings

This commit is contained in:
2024-03-19 15:56:57 +00:00
parent bbff1fbbbc
commit 796bd993d0
8 changed files with 14 additions and 25 deletions

View File

@ -19,11 +19,11 @@ class GaussianPriorFactor extends GaussianFactor
public function __construct(float $mean, float $variance, Variable $variable)
{
parent::__construct('Prior value going to %s');
//Prior value going to $variable
parent::__construct();
$this->newMessage = new GaussianDistribution($mean, sqrt($variance));
$newMessage = new Message(
GaussianDistribution::fromPrecisionMean(0, 0),
'message from %s to %s'
GaussianDistribution::fromPrecisionMean(0, 0)
);
$this->createVariableToMessageBindingWithMessage($variable, $newMessage);