[−][src]Function mathru::special::beta::beta_inc_reg
pub fn beta_inc_reg<T>(x: T, a: T, b: T) -> T where
T: Real + Beta,
Incomplete regularized beta function
I_x(a,b) = \frac{\Beta(x;\,a,b)}{\Beta(a,b)}
Fore more information: Wikipedia Beta function
Arguments
- 0.0 <
x
< 1.0, a
> 0.0b
> 0.0
Panics
Panics if the parameter conditions are not fulfilled.
Example
use mathru::special::beta; let a: f64 = 0.3_f64; let b: f64 = 0.6_f64; let x: f64 = 0.2_f64; let beta: f64 = beta::beta_inc_reg(x, a, b);