Skip to content

DmcsQuadrature ​

The Gauss-Hermite rule: ordered nodes, normalised weights, no negative information

3/3 passed in 454ms

TestWhat it doesResult
test_info_positiveOver 297 cases spanning every accepted m, both node branches and T from 1 to 1e-6, the exact information stays positive and below both log2⁡m and the Gaussian form.✅ pass
test_nodes_orderedThe quadrature agrees with an independent trapezoidal integration to 5e-11 on both node branches.✅ pass
test_weights_normaliseA dark channel returns log2⁡m(1−S2/π) with S the weight sum, so a zero to 1e-11 asserts S=π; the 16- and 64-node rules one ulp either side of their switch agree to 1e-11, residual 4.2e-12 at m=3.✅ pass