Skip to main content

betaincinv

Function betaincinv 

Source
pub fn betaincinv(a: f64, b: f64, p: f64) -> f64
Expand description

The x ∈ [0, 1] with I_x(a, b) = p (SciPy’s betaincinv). The start is the normal-based approximation of Abramowitz and Stegun 26.5.22 for a, b ≥ 1 and the small-x and small-1 − x power laws otherwise; then Halley steps with I' = x^{a−1}(1−x)^{b−1} / B(a, b).