Struct criterion_stats::univariate::Percentiles[][src]

pub struct Percentiles<A>(_)
where
    A: Float
;

A “view” into the percentiles of a sample

Implementations

impl<A> Percentiles<A> where
    A: Float,
    usize: From<A, Output = Result<usize, Error>>, 
[src]

pub fn at(&self, p: A) -> A[src]

Returns the percentile at p%

Panics

Panics if p is outside the closed [0, 100] range

pub fn iqr(&self) -> A[src]

Returns the interquartile range

pub fn median(&self) -> A[src]

Returns the 50th percentile

pub fn quartiles(&self) -> (A, A, A)[src]

Returns the 25th, 50th and 75th percentiles

Auto Trait Implementations

impl<A> RefUnwindSafe for Percentiles<A> where
    A: RefUnwindSafe

impl<A> Send for Percentiles<A>

impl<A> Sync for Percentiles<A>

impl<A> Unpin for Percentiles<A>

impl<A> UnwindSafe for Percentiles<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.