pareto4_per

Function pareto4_per 

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

Computes a percentile for X ~ Pareto(mu, sigma, gamma, alpha).

§Note

Determines the value of x such that P(X <= x) = q.

§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). To find the 80th percentile, use q=0.80 and

use ruststat::pareto4_per;
println!("Percentile: {}", pareto4_per(0.8, 0.0, 1.0, 2.0, 0.5));