More types

This commit is contained in:
2023-08-02 12:39:42 +00:00
parent 72de6363fe
commit 4f60c3d024
5 changed files with 20 additions and 13 deletions

View File

@ -4,6 +4,9 @@ namespace DNW\Skills\FactorGraphs;
abstract class FactorGraphLayer
{
/**
* @var Factor[] $localFactors
*/
private array $localFactors = [];
private array $outputVariablesGroups = [];
@ -34,6 +37,9 @@ abstract class FactorGraphLayer
return $this->outputVariablesGroups;
}
/**
* @return Factor[]
*/
public function getLocalFactors(): array
{
return $this->localFactors;