def test_standard_deviation(self): # Returns 2.429 (sample). v = metrics.standard_deviation([1,5,6,7,6,8], sample=True) self.assertAlmostEqual(v, 2.429, places=3) # Returns 2.217 (population). v = metrics.standard_deviation([1,5,6,7,6,8], sample=False) self.assertAlmostEqual(v, 2.217, places=3)
def test_standard_deviation(self): # Assert 2.429 (sample). v = metrics.standard_deviation([1,5,6,7,6,8], sample=True) self.assertAlmostEqual(v, 2.429, places=3) # Assert 2.217 (population). v = metrics.standard_deviation([1,5,6,7,6,8], sample=False) self.assertAlmostEqual(v, 2.217, places=3) print("pattern.metrics.standard_deviation()")
def test_standard_deviation(self): # Assert 2.429 (sample). v = metrics.standard_deviation([1, 5, 6, 7, 6, 8], sample=True) self.assertAlmostEqual(v, 2.429, places=3) # Assert 2.217 (population). v = metrics.standard_deviation([1, 5, 6, 7, 6, 8], sample=False) self.assertAlmostEqual(v, 2.217, places=3) print("pattern.metrics.standard_deviation()")