[][src]Crate meansd

A utility library to calculate mean and standard deviation with online algorithms.

Examples

use meansd::MeanSD;

let mut meansd = MeanSD::default();

meansd.update(1.0);
meansd.update(2.0);
meansd.update(3.0);

assert_eq!(meansd.size(), 3);
assert_eq!(meansd.mean(), 2.0);
assert_eq!(meansd.sd(), 1.0);

Structs

Bin

A bin as used in Binned.

Binned

An online algorithm for calculating mean and standard deviation with binning and fixed bin sizes.

MeanSD

An online algorithm for calculating mean and standard deviation.

Enums

StandardDeviationMode

How to calculate the standard deviation.