Function mathru::special::gamma::gamma_ur

source ·
pub fn gamma_ur<T>(a: T, x: T) -> T
where T: Real + Gamma,
Expand description

Upper incomplete regularized gamma function

Q(a,x)=\frac{\Gamma(a,x)}{\Gamma(a)}

Fore more information: https://en.wikipedia.org/wiki/Incomplete_gamma_function#Regularized_Gamma_functions_and_Poisson_random_variables

Arguments

  • a
  • x

Example

use mathru::special::gamma;

let a: f64 = 0.5_f64;
let x: f64 = 0.3_f64;
let gamma_u: f64 = gamma::gamma_ur(a, x);