def test_skewness(self): # Returns < 0.0 (few low values). v = metrics.skewness([1,100,101,102,103]) self.assertTrue(v < 0.0) # Returns > 0.0 (few high values). v = metrics.skewness([1,2,3,4,100]) self.assertTrue(v > 0.0) # Returns 0.0 (evenly distributed). v = metrics.skewness([1,2,3,4]) self.assertTrue(v == 0.0)
def test_skewness(self): # Assert < 0.0 (few low values). v = metrics.skewness([1,100,101,102,103]) self.assertTrue(v < 0.0) # Assert > 0.0 (few high values). v = metrics.skewness([1,2,3,4,100]) self.assertTrue(v > 0.0) # Assert 0.0 (evenly distributed). v = metrics.skewness([1,2,3,4]) self.assertTrue(v == 0.0) print("pattern.metrics.skewness()")
def test_skewness(self): # Assert < 0.0 (few low values). v = metrics.skewness([1, 100, 101, 102, 103]) self.assertTrue(v < 0.0) # Assert > 0.0 (few high values). v = metrics.skewness([1, 2, 3, 4, 100]) self.assertTrue(v > 0.0) # Assert 0.0 (evenly distributed). v = metrics.skewness([1, 2, 3, 4]) self.assertTrue(v == 0.0) print("pattern.metrics.skewness()")