def test_corrcc_ci_2d(): data1 = np.random.rand(2, 200) * np.pi data2 = np.asarray(data1) out1, (out2, out3) = pycircstat.corrcc(data1, data2, ci=0.95, axis=1) exp1, (exp2, exp3) = (np.ones(2), pycircstat.CI(np.ones(2), np.ones(2))) assert_allclose(out1, exp1) assert_allclose(out2, exp2) assert_allclose(out3, exp3)
def test_corrcc_ci(): data1 = np.random.rand(200) * 2 * np.pi data2 = np.asarray(data1) exp = (1., pycircstat.CI(1., 1.)) assert_equal(pycircstat.corrcc(data1, data2, ci=0.95), exp)