Struct average::Quantile
[−]
[src]
pub struct Quantile { /* fields omitted */ }
Estimate the p-quantile of a sequence of numbers ("population").
Methods
impl Quantile
[src]
fn new(p: f64) -> Quantile
[src]
Create a new p-quantile estimator.
Panics if p
is not between 0 and 1.
fn p(&self) -> f64
[src]
Return the value of p
for this p-quantile.
fn quantile(&self) -> f64
[src]
Estimate the p-quantile of the population.
Returns 0 for an empty sample.
fn len(&self) -> u64
[src]
Return the sample size.
fn is_empty(&self) -> bool
[src]
Determine whether the sample is empty.
Trait Implementations
impl Debug for Quantile
[src]
impl Clone for Quantile
[src]
fn clone(&self) -> Quantile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more