예제 #1
0
파일: test_period.py 프로젝트: mr-c/cogent3
 def test_g_statitic(self):
     """calc g-stat correctly"""
     X, periods = ipdft(self.sig, llim=2, ulim=39)
     g_obs, p_val = g_statistic(X)
     assert_allclose(p_val, 0.9997, rtol=1e-3)
     assert_allclose(g_obs, 0.0577, rtol=1e-3)
예제 #2
0
 def test_g_statitic(self):
     """calc g-stat correctly"""
     X, periods = ipdft(self.sig, llim=2, ulim=39)
     g_obs, p_val = g_statistic(X)
     self.assertFloatEqual(p_val, 0.9997, eps=1e-3)
     self.assertFloatEqual(g_obs, 0.0577, eps=1e-3)