[][src]Trait rstat::statistics::Quantiles

pub trait Quantiles: Distribution {
    fn quantile(&self, p: Probability) -> f64 { ... }
fn cquantile(&self, p: Probability) -> f64 { ... }
fn lower_quartile(&self) -> f64 { ... }
fn median(&self) -> f64 { ... }
fn upper_quartile(&self) -> f64 { ... }
fn iqr(&self) -> f64 { ... }
fn lower_fence(&self) -> f64 { ... }
fn upper_fence(&self) -> f64 { ... } }

Provided methods

fn quantile(&self, p: Probability) -> f64

Evaluates the inverse cumulative distribution function (CDF) at p.

The quantile function specifies the value x of a random variable X at which the probability is less than or equal to p: Q(p) = inf{ x in R : p <= F(x)}. For continuous and strictly monotonically increasing CDFs, it takes the exact form: Q = 1 / F.

fn cquantile(&self, p: Probability) -> f64

Evaluates the complementary quantile function at x: Q(1 - p).

fn lower_quartile(&self) -> f64

Computes the lower quartile of the distribution, Q(0.25).

fn median(&self) -> f64

Computes the median value of the distribution, Q(0.5).

A default implementation is provided by calling self.quantile(0.5). It is recommended, however, that you provide specialised version as it is generally more efficient than evaluating Q.

fn upper_quartile(&self) -> f64

Computes the upper quartile of the distribution, Q(0.75).

fn iqr(&self) -> f64

Computes the interquartile range (IQR) of the distribution, Q(0.75) - Q(0.25).

fn lower_fence(&self) -> f64

Computes the lower fence of the distribution, Q(0.25) - 1.5 · IQR.

The lower fence is typically used to define the lower limit of the distribution, beyond which values are deemed outliers.

fn upper_fence(&self) -> f64

Computes the lower fence of the distribution, Q(0.75) + 1.5 · IQR.

The upper fence is typically used to define the upper limit of the distribution, beyond which values are deemed outliers.

Loading content...

Implementors

impl Quantiles for UvNormal[src]

impl Quantiles for Arcsine[src]

impl Quantiles for Bernoulli[src]

impl Quantiles for Beta[src]

impl Quantiles for Binomial[src]

impl Quantiles for Cauchy[src]

impl Quantiles for Chi[src]

impl Quantiles for ChiSq[src]

impl Quantiles for Cosine[src]

impl Quantiles for Exponential[src]

impl Quantiles for Frechet[src]

impl Quantiles for Geometric[src]

impl Quantiles for GeneralisedExtremeValue[src]

impl Quantiles for GeneralisedPareto[src]

impl Quantiles for Gumbel[src]

impl Quantiles for Kumaraswamy[src]

impl Quantiles for Laplace[src]

impl Quantiles for Levy[src]

impl Quantiles for Logistic[src]

impl Quantiles for Pareto[src]

impl Quantiles for Poisson[src]

impl Quantiles for Rayleigh[src]

impl Quantiles for StudentT[src]

impl Quantiles for Triangular[src]

impl Quantiles for Uniform<f64>[src]

impl Quantiles for Uniform<i64>[src]

impl Quantiles for Weibull[src]

Loading content...