1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
//
// A rust binding for the GSL library by Guillaume Gomez (guillaume1.gomez@gmail.com)
//
/// This function computes the probability density p(x) at x for a Gaussian distribution with standard deviation sigma, using the formula given above.
#[doc(alias = "gsl_ran_gaussian_pdf")]
pub fn gaussian_pdf(x: f64, sigma: f64) -> f64 {
unsafe { sys::gsl_ran_gaussian_pdf(x, sigma) }
}
/// This function computes results for the unit Gaussian distribution.
/// They are equivalent to the functions above with a standard deviation of one, sigma = 1.
#[doc(alias = "gsl_ran_ugaussian_pdf")]
pub fn ugaussian_pdf(x: f64) -> f64 {
unsafe { sys::gsl_ran_ugaussian_pdf(x) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the Gaussian distribution with standard deviation sigma.
#[doc(alias = "gsl_cdf_gaussian_P")]
pub fn gaussian_P(x: f64, sigma: f64) -> f64 {
unsafe { sys::gsl_cdf_gaussian_P(x, sigma) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the Gaussian distribution with standard deviation sigma.
#[doc(alias = "gsl_cdf_gaussian_Q")]
pub fn gaussian_Q(x: f64, sigma: f64) -> f64 {
unsafe { sys::gsl_cdf_gaussian_Q(x, sigma) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the Gaussian distribution with standard deviation sigma.
#[doc(alias = "gsl_cdf_gaussian_Pinv")]
pub fn gaussian_Pinv(P: f64, sigma: f64) -> f64 {
unsafe { sys::gsl_cdf_gaussian_Pinv(P, sigma) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the Gaussian distribution with standard deviation sigma.
#[doc(alias = "gsl_cdf_gaussian_Qinv")]
pub fn gaussian_Qinv(Q: f64, sigma: f64) -> f64 {
unsafe { sys::gsl_cdf_gaussian_Qinv(Q, sigma) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the unit Gaussian distribution.
#[doc(alias = "gsl_cdf_ugaussian_P")]
pub fn ugaussian_P(x: f64) -> f64 {
unsafe { sys::gsl_cdf_ugaussian_P(x) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the unit Gaussian distribution.
#[doc(alias = "gsl_cdf_ugaussian_Q")]
pub fn ugaussian_Q(x: f64) -> f64 {
unsafe { sys::gsl_cdf_ugaussian_Q(x) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the unit Gaussian distribution.
#[doc(alias = "gsl_cdf_ugaussian_Pinv")]
pub fn ugaussian_Pinv(P: f64) -> f64 {
unsafe { sys::gsl_cdf_ugaussian_Pinv(P) }
}
/// This function computes the cumulative distribution functions P(x), Q(x) and their inverses for the unit Gaussian distribution.
#[doc(alias = "gsl_cdf_ugaussian_Qinv")]
pub fn ugaussian_Qinv(Q: f64) -> f64 {
unsafe { sys::gsl_cdf_ugaussian_Qinv(Q) }
}