From 701b9819e09967c88d595b4be6652c8e829d0467 Mon Sep 17 00:00:00 2001 From: Matthias Held Date: Sun, 19 May 2019 19:55:00 +0200 Subject: fix tests by fix naming of methods --- tests/Unit/Entropy/EntropyTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Unit') diff --git a/tests/Unit/Entropy/EntropyTest.php b/tests/Unit/Entropy/EntropyTest.php index 84cd37a..f4f87ce 100644 --- a/tests/Unit/Entropy/EntropyTest.php +++ b/tests/Unit/Entropy/EntropyTest.php @@ -83,8 +83,8 @@ class EntropyTest extends TestCase $standardDeviation = 0.0; foreach($data as $key => $value) { $sum = $sum + pow($value, 2); - $mean = $this->invokePrivate($this->entropy, 'streamMean', [$mean, $value, $key + 1]); - $standardDeviation = $this->invokePrivate($this->entropy, 'streamStandardDeviation', [$key + 1, $sum, $mean]); + $mean = $this->invokePrivate($this->entropy, 'calculateMeanOfSeries', [$mean, $value, $key + 1]); + $standardDeviation = $this->invokePrivate($this->entropy, 'calculateStandardDeviationOfSeries', [$key + 1, $sum, $mean]); } $this->assertEquals(number_format($standardDeviation, 6), $sd); } -- cgit v1.2.3