mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-16 11:04:27 +00:00
Pint applied
This commit is contained in:
@ -88,7 +88,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
|
||||
{
|
||||
// A simple vector of all the player means.
|
||||
return new Vector(self::getPlayerRatingValues($teamAssignmentsList,
|
||||
fn($rating) => $rating->getMean()));
|
||||
fn ($rating) => $rating->getMean()));
|
||||
}
|
||||
|
||||
private static function getPlayerCovarianceMatrix(array $teamAssignmentsList)
|
||||
@ -97,7 +97,7 @@ class FactorGraphTrueSkillCalculator extends SkillCalculator
|
||||
// players.
|
||||
return new DiagonalMatrix(
|
||||
self::getPlayerRatingValues($teamAssignmentsList,
|
||||
fn($rating) => BasicMath::square($rating->getStandardDeviation())));
|
||||
fn ($rating) => BasicMath::square($rating->getStandardDeviation())));
|
||||
}
|
||||
|
||||
// Helper function that gets a list of values for all player ratings
|
||||
|
Reference in New Issue
Block a user