def test_mean_long(self): self.failIf(long.mean(numx.array([-1,-3,1])) != -1) self.failIf(long.mean([1,2,3]) != 2)
def test_variance_m_long(self): self.failIf(long.variance_m(numx.array([-1,-3,1]), long.mean(numx.array([-1,-3,1]))) != 4) return
def test_sd_m_long(self): self.failIf(long.sd_m(numx.array([-1,-3,1]), long.mean(numx.array([-1,-3,1]))) != 2)
def test_mean_long(self): self.assertFalse(long.mean(numx.array([-1, -3, 1])) != -1) self.assertFalse(long.mean([1, 2, 3]) != 2)
def test_variance_m_long(self): self.assertFalse( long.variance_m(numx.array([-1, -3, 1]), long.mean(numx.array([-1, -3, 1]))) != 4) return
def test_sd_m_long(self): self.assertFalse( long.sd_m(numx.array([-1, -3, 1]), long.mean(numx.array([-1, -3, 1]))) != 2)