mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-15 17:37:39 +00:00
CodeBeautifier.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
use DNW\Skills\FactorGraphs\ScheduleSequence;
|
||||
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
||||
|
||||
@ -12,11 +13,11 @@ abstract class FactorGraphLayer
|
||||
private array $localFactors = [];
|
||||
|
||||
/**
|
||||
* @var array<int,array<int,object>>
|
||||
* @var array<int,array<int,object>>
|
||||
*/
|
||||
private array $outputVariablesGroups = [];
|
||||
/**
|
||||
* @var array<int,array<int,object>>
|
||||
* @var array<int,array<int,object>>
|
||||
*/
|
||||
private $inputVariablesGroups = [];
|
||||
|
||||
|
@ -120,7 +120,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Helper function that gets a list of values for all player ratings
|
||||
* @param Team[] $teamAssignmentsList
|
||||
|
@ -8,8 +8,8 @@ use DNW\Skills\PartialPlay;
|
||||
use DNW\Skills\Player;
|
||||
use DNW\Skills\Team;
|
||||
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
||||
use DNW\Skills\FactorGraphs\Variable;
|
||||
use DNW\Skills\FactorGraphs\KeyedVariable;
|
||||
use DNW\Skills\FactorGraphs\Variable;
|
||||
use DNW\Skills\FactorGraphs\KeyedVariable;
|
||||
|
||||
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
|
||||
);
|
||||
}
|
||||
|
||||
private function createSkillOutputVariable(mixed $key) : KeyedVariable
|
||||
private function createSkillOutputVariable(mixed $key): KeyedVariable
|
||||
{
|
||||
$parentFactorGraph = $this->getParentFactorGraph();
|
||||
$variableFactory = $parentFactorGraph->getVariableFactory();
|
||||
|
Reference in New Issue
Block a user