fn
hermite_polynomial_he
→Tensorhermite_polynomial_he(x: Tensor, n: int)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
xTensorArgument tensor; any floating-point dtype.
nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as
x.
Notes
Recurrence:
Connection to physicists' Hermite: . Raises ValueError for n < 0.
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.0000, 0.0000, -2.0000])