Function peroxide::checked_beta_inc

source ·
pub fn checked_beta_inc(a: f64, b: f64, x: f64) -> Result<f64, StatsError>
Expand description

Computes the lower incomplete (unregularized) beta function B(a,b,x) = int(t^(a-1)*(1-t)^(b-1),t=0..x) for a > 0, b > 0, 1 >= x >= 0 where a is the first beta parameter, b is the second beta parameter, and x is the upper limit of the integral

Errors

If a <= 0.0, b <= 0.0, x < 0.0, or x > 1.0