def test_simple(self): d = 2 n = 200 # m = 200 x = np.random.randn(n, d) # y = np.random.randn(m, d) # Almost identical samples dm = xca.zech_aslan(x + 0.001, x) assert dm < 0
def test_compare_with_matlab(self): x, y = matlab_sample() dm = xca.zech_aslan(x, y) assert_almost_equal(dm, 0.77802, 4)