[][src]Trait holochain_metrics::stats::DescriptiveStats

pub trait DescriptiveStats {
    fn max(&self) -> f64;
fn min(&self) -> f64;
fn cnt(&self) -> f64;
fn mean(&self) -> f64;
fn stddev(&self) -> f64;
fn variance(&self) -> f64; fn percent_change(&self, other: &dyn DescriptiveStats) -> StatsRecord { ... } }

Generic representation of descriptive statistics.

Required methods

fn max(&self) -> f64

fn min(&self) -> f64

fn cnt(&self) -> f64

fn mean(&self) -> f64

fn stddev(&self) -> f64

fn variance(&self) -> f64

Loading content...

Provided methods

fn percent_change(&self, other: &dyn DescriptiveStats) -> StatsRecord

Computes percent change between two descriptive statistics

Loading content...

Implementors

impl DescriptiveStats for OnlineStats[src]

fn mean(&self) -> f64[src]

The mean value of the running statistic.

fn stddev(&self) -> f64[src]

The standard deviation of the running statistic.

fn variance(&self) -> f64[src]

The variance of the running statistic.

fn max(&self) -> f64[src]

The max of the running statistic.

fn min(&self) -> f64[src]

The min of the running statistic.

fn cnt(&self) -> f64[src]

The number of samples of the running statistic.

impl DescriptiveStats for StatsRecord[src]

Loading content...