def test_kde_integer_input():
 x1 = np.arange(5)
 kde = stats.gaussian_kde(x1)
 y_expected = [0.13480721, 0.18222869, 0.19514935, 0.18222869, 0.13480721]
 assert_array_almost_equal(kde(x1), y_expected, decimal=6)

def test_kde_integer_input ( ) : x1 = np . arange ( 5 ) kde = stats . gaussian_kde ( x1 ) y_expected = [ 0.13480721 , 0.18222869 , 0.19514935 , 0.18222869 , 0.13480721 ] assert_array_almost_equal ( kde ( x1 ) , y_expected , decimal = 6 )
regression test for #1181 .