Struct test::stats::SummaryExperimental [-]  [+] [src]

pub struct Summary<T> {
    pub sum: T,
    pub min: T,
    pub max: T,
    pub mean: T,
    pub median: T,
    pub var: T,
    pub std_dev: T,
    pub std_dev_pct: T,
    pub median_abs_dev: T,
    pub median_abs_dev_pct: T,
    pub quartiles: (T, T, T),
    pub iqr: T,
}

Extracted collection of all the summary statistics of a sample set.

Fields

sum
min
max
mean
median
var
std_dev
std_dev_pct
median_abs_dev
median_abs_dev_pct
quartiles
iqr

Methods

impl<T: FloatMath + FromPrimitive> Summary<T>

fn new(samples: &[T]) -> Summary<T>

Construct a new summary of a sample set.

Trait Implementations

Derived Implementations

impl<T: PartialEq> PartialEq for Summary<T>

fn eq(&self, __arg_0: &Summary<T>) -> bool

fn ne(&self, __arg_0: &Summary<T>) -> bool

impl<T: Clone> Clone for Summary<T>

fn clone(&self) -> Summary<T>

fn clone_from(&mut self, source: &Self)