Probabilist's Hermite polynomial .
Probabilists' Hermite polynomials are orthogonal on with weight — the standard normal density — and are the natural basis for Hermite-expansions of functions against a Gaussian measure (Wiener chaos, Gauss-Hermite quadrature with weight 1).
Parameters
Returns
Tensor element-wise, broadcast over x and n.
Notes
Recurrence:
Connection to physicists' Hermite: .
Examples
>>> import lucid
>>> from lucid.special import hermite_polynomial_he
>>> hermite_polynomial_he(lucid.tensor([-1.0, 0.0, 1.0]), n=3)
tensor([2., -0., -2.])