Skip to main content

quantile_bisect

Function quantile_bisect 

Source
fn quantile_bisect(p: f64, lo: f64, hi: f64, cdf: impl Fn(f64) -> f64) -> f64
Expand description

Bisection-based quantile finder given a CDF. Finds x such that cdf(x) = p.