Sub 200 warnings on static analysis

This commit is contained in:
2023-08-01 12:43:58 +00:00
parent b7322362bd
commit dc35035c3c
9 changed files with 20 additions and 20 deletions

View File

@ -127,7 +127,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
return $result;
}
private function updateHelper(array $weights, array $weightsSquared, array $messages, array $variables)
private function updateHelper(array $weights, array $weightsSquared, array $messages, array $variables): float
{
// Potentially look at http://mathworld.wolfram.com/NormalSumDistribution.html for clues as
// to what it's doing
@ -182,7 +182,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
return $finalDiff;
}
public function updateMessageIndex($messageIndex)
public function updateMessageIndex(int $messageIndex): float
{
$allMessages = $this->getMessages();
$allVariables = $this->getVariables();