mirror of
https://github.com/furyfire/trueskill.git
synced 2025-09-06 02:18:23 +02:00
Fixing failing tests and misc cleanup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php namespace Moserware\Skills\TrueSkill\Layers;
|
||||
|
||||
use Moserware\Skills\Numerics\BasicMatch;
|
||||
use Moserware\Skills\Numerics\BasicMath;
|
||||
use Moserware\Skills\Rating;
|
||||
use Moserware\Skills\FactorGraphs\ScheduleStep;
|
||||
use Moserware\Skills\FactorGraphs\Variable;
|
||||
@@ -57,8 +57,8 @@ class PlayerPriorValuesToSkillsLayer extends TrueSkillFactorGraphLayer
|
||||
{
|
||||
return new GaussianPriorFactor(
|
||||
$priorRating->getMean(),
|
||||
BasicMatch::square($priorRating->getStandardDeviation()) +
|
||||
BasicMatch::square($this->getParentFactorGraph()->getGameInfo()->getDynamicsFactor()),
|
||||
BasicMath::square($priorRating->getStandardDeviation()) +
|
||||
BasicMath::square($this->getParentFactorGraph()->getGameInfo()->getDynamicsFactor()),
|
||||
$skillsVariable
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user