@@ -0,0 +1,528 @@
+# coding: utf-8%0Aimport numpy as np%0Afrom scipy.stats.distributions import norm%0Afrom mousestyles.kde import kde%0A%0Adef test_kde():%0A    pdf = kde(x = np.array(%5B2,3,1,0%5D), x_grid=np.linspace(0, 5, 10))%0A    assert (type(pdf) == np.ndarray)%0A    assert all(%5Bitem %3E= 0 for item in pdf%5D)%0A    assert (len(pdf) == 10)%0A    x1 = np.concatenate(%5Bnorm(-1, 1.).rvs(400),%0A                    norm(1, 0.3).rvs(100)%5D)%0A    pdf = kde(x = x1)%0A    assert (type(pdf) == np.ndarray)%0A    assert all(%5Bitem %3E= 0 for item in pdf%5D)%0A    assert (len(pdf) == 300)

test for kde function