numpy.polynomial.hermite.hermweight#

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

Hermite 多项式的权重函数.

权重函数为 \(\exp(-x^2)\) ,积分区间为 \([-\inf, \inf]\) . Hermite 多项式关于此权重函数是正交的,但不是归一化的.

参数:
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])