From 8b22abc9a6c6ed29b54fe6ae480e670e2584353a Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 17 May 2019 17:16:22 +0200 Subject: fix variable init --- tests/Unit/Entropy/EntropyTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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]); -- cgit v1.2.3