rgsl/randist/exponential_power.rs
1//
2// A rust binding for the GSL library by Guillaume Gomez (guillaume1.gomez@gmail.com)
3//
4
5/// This function computes the probability density p(x) at x for an exponential power distribution with scale parameter a and exponent b, using the formula given above.
6#[doc(alias = "gsl_ran_exppow_pdf")]
7pub fn exppow_pdf(x: f64, a: f64, b: f64) -> f64 {
8 unsafe { sys::gsl_ran_exppow_pdf(x, a, b) }
9}
10
11/// This function computes tthe cumulative distribution functions P(x), Q(x) for the exponential power distribution with parameters a and b.
12#[doc(alias = "gsl_cdf_exppow_P")]
13pub fn exppow_P(x: f64, a: f64, b: f64) -> f64 {
14 unsafe { sys::gsl_cdf_exppow_P(x, a, b) }
15}
16
17/// This function computes tthe cumulative distribution functions P(x), Q(x) for the exponential power distribution with parameters a and b.
18#[doc(alias = "gsl_cdf_exppow_Q")]
19pub fn exppow_Q(x: f64, a: f64, b: f64) -> f64 {
20 unsafe { sys::gsl_cdf_exppow_Q(x, a, b) }
21}