Example #1
0
 def test_mean_long(self):
     self.failIf(long.mean(numx.array([-1,-3,1])) != -1)
     self.failIf(long.mean([1,2,3]) != 2)
Example #2
0
 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
Example #3
0
 def test_sd_m_long(self):
     self.failIf(long.sd_m(numx.array([-1,-3,1]),
                           long.mean(numx.array([-1,-3,1]))) != 2)
Example #4
0
 def test_mean_long(self):
     self.assertFalse(long.mean(numx.array([-1, -3, 1])) != -1)
     self.assertFalse(long.mean([1, 2, 3]) != 2)
Example #5
0
 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
Example #6
0
 def test_sd_m_long(self):
     self.assertFalse(
         long.sd_m(numx.array([-1, -3, 1]),
                   long.mean(numx.array([-1, -3, 1]))) != 2)