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
|
<?php
|
||||||
|
|
||||||
namespace DNW\Skills\FactorGraphs;
|
namespace DNW\Skills\FactorGraphs;
|
||||||
|
|
||||||
use DNW\Skills\FactorGraphs\ScheduleSequence;
|
use DNW\Skills\FactorGraphs\ScheduleSequence;
|
||||||
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
||||||
|
|
||||||
@ -12,11 +13,11 @@ abstract class FactorGraphLayer
|
|||||||
private array $localFactors = [];
|
private array $localFactors = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array<int,array<int,object>>
|
* @var array<int,array<int,object>>
|
||||||
*/
|
*/
|
||||||
private array $outputVariablesGroups = [];
|
private array $outputVariablesGroups = [];
|
||||||
/**
|
/**
|
||||||
* @var array<int,array<int,object>>
|
* @var array<int,array<int,object>>
|
||||||
*/
|
*/
|
||||||
private $inputVariablesGroups = [];
|
private $inputVariablesGroups = [];
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function that gets a list of values for all player ratings
|
* Helper function that gets a list of values for all player ratings
|
||||||
* @param Team[] $teamAssignmentsList
|
* @param Team[] $teamAssignmentsList
|
||||||
|
@ -8,8 +8,8 @@ use DNW\Skills\PartialPlay;
|
|||||||
use DNW\Skills\Player;
|
use DNW\Skills\Player;
|
||||||
use DNW\Skills\Team;
|
use DNW\Skills\Team;
|
||||||
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
||||||
use DNW\Skills\FactorGraphs\Variable;
|
use DNW\Skills\FactorGraphs\Variable;
|
||||||
use DNW\Skills\FactorGraphs\KeyedVariable;
|
use DNW\Skills\FactorGraphs\KeyedVariable;
|
||||||
|
|
||||||
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer
|
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();
|
$parentFactorGraph = $this->getParentFactorGraph();
|
||||||
$variableFactory = $parentFactorGraph->getVariableFactory();
|
$variableFactory = $parentFactorGraph->getVariableFactory();
|
||||||
|
Reference in New Issue
Block a user