diff options
author | Matthias <ilovemilk@wusa.io> | 2019-05-17 18:16:22 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2019-05-17 18:16:22 +0300 |
commit | 8b22abc9a6c6ed29b54fe6ae480e670e2584353a (patch) | |
tree | 6e9e769169e6b99299dbc116795c1977c53a61de /tests | |
parent | 5551db8c80f440554676c0d37b82b24e465773a0 (diff) |
fix variable init
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Entropy/EntropyTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Entropy/EntropyTest.php b/tests/Unit/Entropy/EntropyTest.php index 0b3266f..c4f515d 100644 --- a/tests/Unit/Entropy/EntropyTest.php +++ b/tests/Unit/Entropy/EntropyTest.php @@ -77,7 +77,9 @@ class EntropyTest extends TestCase public function testSd($data, $sd) { $this->assertEquals(number_format($this->invokePrivate($this->entropy, 'sd', [$data]), 6), $sd); - $sum = 0.0, $mean = 0.0, $standardDeviation = 0.0; + $sum = 0.0; + $mean = 0.0; + $standardDeviation = 0.0; foreach($data as $key => $value) { $sum = $sum + pow($value, 2); $mean = $this->invokePrivate($this->entropy, 'streamMean', [$mean, $value, $key + 1]); |