numpy.polynomial.hermite.hermweight#
- polynomial.hermite.hermweight(x)[source]#
埃爾米特多項式的權重函數。
權重函數為 \(\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])