Upgrade with rector

This commit is contained in:
Alex Wulf
2022-07-05 16:21:06 +02:00
parent fd5d276359
commit 689e3b75fe
38 changed files with 144 additions and 355 deletions

View File

@ -7,7 +7,7 @@ namespace DNW\Skills\FactorGraphs;
*/
class FactorList
{
private $_list = [];
private array $_list = [];
public function getLogNormalization()
{
@ -33,7 +33,7 @@ class FactorList
$sumLogS = 0;
foreach ($list as &$currentFactor) {
$sumLogS = $sumLogS + $currentFactor->getLogNormalization();
$sumLogS += $currentFactor->getLogNormalization();
}
return $sumLogZ + $sumLogS;