Function statrs::function::beta::beta_inc [−][src]
pub fn beta_inc(a: f64, b: f64, x: f64) -> f64
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
Panics
If a <= 0.0
, b <= 0.0
, x < 0.0
, or x > 1.0