Function rgsl::randist::logistic::logistic

source ·
pub fn logistic(r: &mut Rng, a: f64) -> f64
Expand description

This function returns a random variate from the logistic distribution. The distribution function is,

p(x) dx = { \exp(-x/a) \over a (1 + \exp(-x/a))^2 } dx

for -\infty < x < +\infty.