mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 20:34:28 +00:00
Rector standards slowly being applied. PHP Version first.
This commit is contained in:
@ -16,7 +16,7 @@ use DNW\Skills\TrueSkill\TruncatedGaussianCorrectionFunctions;
|
||||
*/
|
||||
class GaussianGreaterThanFactor extends GaussianFactor
|
||||
{
|
||||
private float $epsilon;
|
||||
private readonly float $epsilon;
|
||||
|
||||
public function __construct(float $epsilon, Variable $variable)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ use Exception;
|
||||
*/
|
||||
class GaussianLikelihoodFactor extends GaussianFactor
|
||||
{
|
||||
private float $precision;
|
||||
private readonly float $precision;
|
||||
|
||||
public function __construct(float $betaSquared, Variable $variable1, Variable $variable2)
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ use DNW\Skills\Numerics\GaussianDistribution;
|
||||
*/
|
||||
class GaussianPriorFactor extends GaussianFactor
|
||||
{
|
||||
private GaussianDistribution $newMessage;
|
||||
private readonly GaussianDistribution $newMessage;
|
||||
|
||||
public function __construct(float $mean, float $variance, Variable $variable)
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ use DNW\Skills\TrueSkill\TruncatedGaussianCorrectionFunctions;
|
||||
*/
|
||||
class GaussianWithinFactor extends GaussianFactor
|
||||
{
|
||||
private float $epsilon;
|
||||
private readonly float $epsilon;
|
||||
|
||||
public function __construct(float $epsilon, Variable $variable)
|
||||
{
|
||||
|
Reference in New Issue
Block a user