Ejemplo n.º 1
0
 def test_1D_ks_2samp(self):
     # Compare with scipy.stats.ks_2samp
     x = np.random.randn(50) + 1
     y = np.random.randn(50)
     s, p = stats.ks_2samp(x, y)
     dm = xca.kolmogorov_smirnov(x, y)
     assert_almost_equal(dm, s, 3)
Ejemplo n.º 2
0
 def test_compare_with_matlab(self):
     x, y = matlab_sample()
     dm = xca.kolmogorov_smirnov(x, y)
     assert_almost_equal(dm, 0.96667, 4)