pareto4_ran

Function pareto4_ran 

Source
pub fn pareto4_ran(mu: f64, sigma: f64, gamma: f64, alpha: f64) -> f64
Expand description

Random draw from X ~ Pareto(mu, sigma, gamma, alpha) distribution.

§Parameters

  • -infinity < mu < infinity
  • sigma > 0
  • gamma > 0
  • alpha > 0

§Support

  • x >= mu

§Example

Suppose X ~ Pareto4(mu=0.0, sigma=1.0, gamma=2.0, alpha=0.5). Use

use ruststat::pareto4_ran;
println!("Random draw: {}", pareto4_ran(0.0, 1.0, 2.0, 0.5));