Struct average::Quantile[][src]

pub struct Quantile { /* fields omitted */ }

Estimate the p-quantile of a sequence of numbers ("population").

The algorithm uses constant space but does not provide any upper bound on the error. For algorithms that use growing space with bounded error, see the quantiles crate. They are recommended over this algorithm for small samples.

Methods

impl Quantile
[src]

Create a new p-quantile estimator.

Panics if p is not between 0 and 1.

Return the value of p for this p-quantile.

Estimate the p-quantile of the population.

Returns 0 for an empty sample.

Return the sample size.

Determine whether the sample is empty.

Trait Implementations

impl Debug for Quantile
[src]

Formats the value using the given formatter. Read more

impl Clone for Quantile
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Quantile
[src]

Create a new median estimator.

impl Estimate for Quantile
[src]

Add an observation sampled from the population.

Estimate the statistic of the population.

Auto Trait Implementations

impl Send for Quantile

impl Sync for Quantile