Ejemplo n.º 1
0
 def test_mtest_build_tables(self):
     x = np.random.randn(3)
     y = x.copy()
     data_value, pval, ncases = mtest.mtest(x, y, min_ncases=20,
                                            path=self.tmpdir)
     assert data_value < 1
     assert pval > 0.1
Ejemplo n.º 2
0
 def test_mtest_verydifferent(self):
     for _ in range(3):
         x = np.random.normal(loc=0., scale=1., size=(5,))
         y = np.random.normal(loc=5., scale=1., size=(5,))
         data_value, pval, ncases = mtest.mtest(x, y, min_ncases=1000)
         assert ncases >= 1000
         assert data_value > 1
         assert pval < 0.01
Ejemplo n.º 3
0
 def test_mtest_identical(self):
     for _ in range(3):
         x = np.random.randn(3)
         y = x.copy()
         data_value, pval, ncases = mtest.mtest(x, y, min_ncases=1000)
         assert ncases >= 1000
         assert data_value < 1
         assert pval > 0.1