Computes generalized Gauss-Laguerre quadrature nodes and weights via eigendecomposition of the Jacobi matrix. These are used to approximate integrals of the form \(\int_0^\infty f(x) x^\beta e^{-x} dx\).
Value
A list with components:
nodesNumeric vector of quadrature nodes \(x_m\).
weightsNumeric vector of quadrature weights \(w_m\).
weights_logNumeric vector of \(\log(w_m)\) for numerical stability.
Details
The algorithm constructs a tridiagonal Jacobi matrix \(J\) of size \(M \times M\):
Diagonal: \(a_k = 2k + 1 + \alpha\) for \(k = 0, \ldots, M-1\)
Off-diagonal: \(b_k = \sqrt{k(k + \alpha)}\) for \(k = 1, \ldots, M-1\)
Eigendecomposition \(J = V D V^T\) yields:
Nodes = eigenvalues (diagonal of \(D\))
Weights = \(\Gamma(\alpha + 1) \cdot V[1,:]^2\)
The generalized Laguerre polynomials \(L_n^{(\alpha)}(x)\) are orthogonal with respect to the weight function \(w(x) = x^\alpha e^{-x}\) on \([0, \infty)\).
References
Golub, G. H., & Welsch, J. H. (1969). Calculation of Gauss Quadrature Rules. Mathematics of Computation, 23(106), 221-230.
See also
build_gamma_quadrature for Gamma distribution integration,
integrate_gamma for high-level expectation computation