Skip to main content

standard_normal_quantile

Function standard_normal_quantile 

Source
pub fn standard_normal_quantile(probability: f64) -> Result<f64, Error>
Expand description

Inverse CDF of the standard normal distribution.

Uses Peter J. Acklam’s rational approximation and is intended for deterministic display statistics such as normal Q-Q plots. The tested absolute error is below 1e-7 across central and representable lower-tail probabilities; this API does not claim full-f64 inverse-CDF accuracy.

§Errors

Returns Error::Data unless probability is finite and strictly between zero and one.