rgsl/randist/
gaussian_tail.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 a Gaussian tail distribution with standard deviation sigma and lower limit a, using the formula given above.
6#[doc(alias = "gsl_ran_gaussian_tail_pdf")]
7pub fn gaussian_tail_pdf(x: f64, a: f64, sigma: f64) -> f64 {
8    unsafe { sys::gsl_ran_gaussian_tail_pdf(x, a, sigma) }
9}
10
11/// This function computes results for the tail of a unit Gaussian distribution. They are equivalent to the functions above with a standard deviation of one, sigma = 1.
12#[doc(alias = "gsl_ran_ugaussian_tail_pdf")]
13pub fn ugaussian_tail_pdf(x: f64, a: f64) -> f64 {
14    unsafe { sys::gsl_ran_ugaussian_tail_pdf(x, a) }
15}