mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-16 11:04:27 +00:00
String based "name" for Variable class removed for performance
This commit is contained in:
@ -16,12 +16,9 @@ use DNW\Skills\TrueSkill\TruncatedGaussianCorrectionFunctions;
|
||||
*/
|
||||
class GaussianGreaterThanFactor extends GaussianFactor
|
||||
{
|
||||
private readonly float $epsilon;
|
||||
|
||||
public function __construct(float $epsilon, Variable $variable)
|
||||
public function __construct(private readonly float $epsilon, Variable $variable)
|
||||
{
|
||||
parent::__construct(\sprintf('%s > %.2f', (string)$variable, $epsilon));
|
||||
$this->epsilon = $epsilon;
|
||||
parent::__construct('%s > %.2f');
|
||||
$this->createVariableToMessageBinding($variable);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user