From b5e4cbe66e8b4e50353f2fe5a98c97ad2d2098ce Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Wed, 27 Apr 2016 23:57:23 +0200 Subject: [PATCH] add Mean::arithmetic tests --- tests/Phpml/Math/Statistic/MeanTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/Phpml/Math/Statistic/MeanTest.php diff --git a/tests/Phpml/Math/Statistic/MeanTest.php b/tests/Phpml/Math/Statistic/MeanTest.php new file mode 100644 index 0000000..2e57ade --- /dev/null +++ b/tests/Phpml/Math/Statistic/MeanTest.php @@ -0,0 +1,17 @@ +assertEquals(3.5, Mean::arithmetic([2, 5]), '', $delta); + $this->assertEquals(41.16, Mean::arithmetic([43, 21, 25, 42, 57, 59]), '', $delta); + } +}