average
average copied to clipboard
Calculate statistics iteratively
trafficstars
average
Calculate statistics of a sequence iteratively in a single pass, using
constant space and avoiding numerical problems. The calculations can be
easily parallelized by using merge.
This crate works without std.
Implemented statistics
- Mean and its error.
- Variance, skewness, kurtosis.
- Arbitrary moments.
- Minimum and maximum.
- Quantile.
- Histogram.
Crate features
The following features are available:
libmenablesQuantile(using floating point functions provided bylibm). This is enabled by default. If thestdfeature is also enabled,stdis preferred overlibm.stdenablesQuantile(using floating point functions provided bystd).serde1enables serialization, via Serde version 1.rayonenables support forrayon::iter::FromParallelIterator.nightlyenables the use of const generics for a histogram implementation without macros. Note that nightly features are not stable and therefore not all library and compiler versions will be compatible.
Rust version requirements
Rustc version 1.51 or greater is supported.
Related Projects
quantiles: Provides quantile estimates with bounded error but using growing space.