relife.utils.gauss_laguerre
relife.utils.gauss_laguerre¶
- relife.utils.gauss_laguerre(func: Callable, *args: numpy.ndarray, ndim: int = 0, deg: int = 100) numpy.ndarray [source]¶
Gauss-Laguerre integration.
- Parameters
func (Callable) – The function to be integrated.
*args (float or 2D array, optional) – Extra arguments required by the function func.
ndim (int, optional) – Number of dimensions of the func, by default 0.
deg (int) – Degree of the Laguerre polynomials (see numpy.polynomial.laguerre.laggauss documentation), by default 100.
- Returns
The Gauss-Laguerre integration of the function func.
- Return type
ndarray
Notes
It is the numerical integration of:
\[\int_0^{+\infty} f(x) e^{-x} \mathrm{d} x\]