archimedes.quadrature.gauss_hermite¶
- archimedes.quadrature.gauss_hermite(
- n: int,
- kind: Literal['phys', 'prob'] = 'phys',
Gauss-Hermite quadrature rule with
nnodes.Nodes are the roots of the degree-
nHermite polynomial. The rule is exact for polynomials up to degree \(2n - 1\), weighted by the Gaussian-shaped reference weight ofmeasure.- Parameters:
n (int) – Number of quadrature nodes.
kind ({"phys", "prob"}, optional) – Which classical Hermite convention to use.
"phys"(default) is the physicists’ convention, with reference weight \(e^{-x^2}\) (HermiteMeasure)."prob"is the probabilists’ convention, with reference weight \(e^{-x^2/2}\) (HermiteNormMeasure) – up to normalization, the standard normal density. Neither weight integrates to 1 on its own; passdensity=TruetoQuadratureRule.integrate/sum/scaled_weightsfor weights that do.
- Returns:
rule – Gauss-Hermite rule with
nnodes on \((-\infty, \infty)\), exact to degree \(2n - 1\).- Return type:
- Raises:
ValueError – If
kindis not"phys"or"prob".