Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def pdf(self, xi):
     return hermite_e.hermeweight(xi) / np.sqrt(2.0*np.pi)