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)
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)