def test_non_stationary(self): x = np.arange(1000) assert_(utils.statcheck(x)[1] < 1E-30)
def test_stationary(self): x = np.arange(500) x = np.hstack([x, x]) assert_allclose(utils.statcheck(x)[1], 1.0)