pub fn betaincc(a: f64, b: f64, x: f64) -> f64Expand description
Complement of the regularized incomplete Beta function, $1 - \I_x(a,b)$
Computes 1:
$$ 1 - \I_x(a,b) = \I_{1-x}(b,a) = {\Gamma(a+b) \over \Gamma(a)\Gamma(b)} \int_x^1 t^{a-1} (1-t)^{b-1} \dd t , $$
for $0 \le x \le 1$, with $\I_x(a,b)$ the regularized incomplete Beta function.
This function is the survival function of the Beta distribution.
§Notes
This function uses the incbet Cephes routine 2 for $\I_{1-x}(b,a)$, given both $x$
and $1 - x$, whereas scipy.special.betaincc wraps the Boost ibetac routine
3.
§See also
betainc: Regularized incomplete Beta function $\I_x(a,b)$betainccinv: Inverse of the complement of the regularized incomplete Beta functionbeta: Beta function $\B(a, b)$scipy.special.betaincc: Corresponding function in SciPy
NIST Digital Library of Mathematical Functions, https://dlmf.nist.gov/8.17.E4. ↩
Cephes Math Library Release 2.3. ↩
The Boost Developers. “Boost C++ Libraries”, https://www.boost.org. ↩