Expand description
Normal (Gaussian) distribution — pdf / cdf / quantile, the canonical engine-wide
implementation. The CDF is ½·erfc(−z/√2) over the shared super::special::erfc
(full precision), and the quantile is Acklam’s rational inverse refined by one
Halley step (≈ machine precision). Domain libraries (financial_modeling’s
Black–Scholes, etc.) should call these instead of re-deriving a local normal_cdf.
Functions§
- cdf
- Normal cdf with mean
mu, std-devsigma(> 0). - Normal pdf with mean
mu, std-devsigma(> 0). - quantile
- Inverse normal cdf with mean
mu, std-devsigma. - standard_
cdf - Standard-normal cdf
Φ(z) = ½·erfc(−z/√2). - standard_
pdf - Standard-normal pdf
φ(z). - standard_
quantile - Inverse standard-normal cdf
Φ⁻¹(p),0 < p < 1(Acklam + one Halley refinement).±∞at the endpoints. - two_
sided_ p - Two-sided p-value for a standard-normal (z) statistic:
2·(1 − Φ(|z|)).