numpy.polynomial.hermite.hermweight#

polynomial.hermite.hermweight(x)[源]#

埃尔米特多项式的权重函数。

权重函数为 \(\exp(-x^2)\),积分区间为 \([-\inf, \inf]\)。埃尔米特多项式在此权重函数下是正交的,但未归一化。

参数:
xarray_like

将计算权重函数的点。

返回:
wndarray

权重函数在 x 处的值。

示例

>>> import numpy as np
>>> from numpy.polynomial.hermite import hermweight
>>> x = np.arange(-2, 2)
>>> hermweight(x)
array([0.01831564, 0.36787944, 1.        , 0.36787944])