More type work

This commit is contained in:
2023-08-02 13:19:35 +00:00
parent 4f60c3d024
commit 73781e9000
13 changed files with 35 additions and 25 deletions

View File

@ -12,11 +12,11 @@ class GaussianDistribution implements \Stringable
{
// precision and precisionMean are used because they make multiplying and dividing simpler
// (the the accompanying math paper for more details)
private $precision;
private float $precision;
private $precisionMean;
private float $precisionMean;
private $variance;
private float $variance;
public function __construct(private float $mean = 0.0, private float $standardDeviation = 1.0)
{