예제 #1
0
파일: test_hermite_e.py 프로젝트: 87/numpy
 def test_weight(self):
     x = np.linspace(-5, 5, 11)
     tgt = np.exp(-.5*x**2)
     res = herme.hermeweight(x)
     assert_almost_equal(res, tgt)
예제 #2
0
 def test_weight(self):
     x = np.linspace(-5, 5, 11)
     tgt = np.exp(-.5 * x**2)
     res = herme.hermeweight(x)
     assert_almost_equal(res, tgt)
예제 #3
0
 def pdf(self, xi):
     return hermite_e.hermeweight(xi) / np.sqrt(2.0*np.pi)