Struct average::Quantile [] [src]

pub struct Quantile { /* fields omitted */ }

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

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.

Add an observation sampled from the population.

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.

impl Clone for Quantile
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more