t_per

Function t_per 

Source
pub fn t_per(p: f64, nu: f64) -> f64
Expand description

Computes a percentile for X ~ t(nu).

§Note

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

§Parameters

  • nu > 0

§Support

  • -infinity < x < infinity

§Example

Suppose X ~ t(nu=25.0). To find the 80th percentile, use q=0.80 and

use ruststat::t_per;
println!("Percentile: {}", t_per(0.8, 25.0));