mirror of
https://github.com/furyfire/trueskill.git
synced 2025-05-11 13:47:51 +00:00
More standards
This commit is contained in:
@ -44,7 +44,7 @@ final class IteratedTeamDifferencesInnerLayer extends TrueSkillFactorGraphLayer
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPriorSchedule(): ?ScheduleSequence
|
||||
public function createPriorSchedule(): ScheduleSequence
|
||||
{
|
||||
switch (count($this->getInputVariablesGroups())) {
|
||||
case 0:
|
||||
|
@ -34,7 +34,7 @@ final class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGra
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPriorSchedule(): ?ScheduleSequence
|
||||
public function createPriorSchedule(): ScheduleSequence
|
||||
{
|
||||
$localFactors = $this->getLocalFactors();
|
||||
|
||||
@ -69,7 +69,7 @@ final class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGra
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPosteriorSchedule(): ?ScheduleSequence
|
||||
public function createPosteriorSchedule(): ScheduleSequence
|
||||
{
|
||||
$allFactors = [];
|
||||
$localFactors = $this->getLocalFactors();
|
||||
|
@ -51,7 +51,7 @@ final class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPriorSchedule(): ?ScheduleSequence
|
||||
public function createPriorSchedule(): ScheduleSequence
|
||||
{
|
||||
$localFactors = $this->getLocalFactors();
|
||||
|
||||
|
@ -53,7 +53,7 @@ final class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPriorSchedule(): ?ScheduleSequence
|
||||
public function createPriorSchedule(): ScheduleSequence
|
||||
{
|
||||
$localFactors = $this->getLocalFactors();
|
||||
|
||||
@ -68,7 +68,7 @@ final class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function createPosteriorSchedule(): ?ScheduleSequence
|
||||
public function createPosteriorSchedule(): ScheduleSequence
|
||||
{
|
||||
$localFactors = $this->getLocalFactors();
|
||||
|
||||
|
@ -159,7 +159,7 @@ final class TwoTeamTrueSkillCalculator extends SkillCalculator
|
||||
$team2Ratings = $teams[1]->getAllRatings();
|
||||
$team2Count = count($team2Ratings);
|
||||
|
||||
$totalPlayers = $team1Count + $team2Count;
|
||||
$totalPlayers = (float)($team1Count + $team2Count);
|
||||
|
||||
$betaSquared = BasicMath::square($gameInfo->getBeta());
|
||||
|
||||
|
Reference in New Issue
Block a user