average

Crates.ioaverage
lib.rsaverage
version0.16.0
created_at2017-04-26 18:49:04.355991+00
updated_at2025-03-12 18:36:13.442653+00
descriptionCalculate statistics iteratively
homepage
repositoryhttps://github.com/vks/average
max_upload_size
id12127
size130,321
Vinzent Steinberg (vks)

documentation

https://docs.rs/average

README

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.

Documentation Status Latest Version Build Status

Implemented statistics

  • Mean and its error.

  • Variance, skewness, kurtosis.

  • Arbitrary moments.

  • Minimum and maximum.

  • Quantile.

  • Histogram.

Crate features

The following features are available:

  • libm enables Quantile (using floating point functions provided by libm). This is enabled by default. If the std feature is also enabled, std is preferred over libm.

  • std enables Quantile (using floating point functions provided by std).

  • serde enables serialization, via Serde version 1.

  • rayon enables support for rayon::iter::FromParallelIterator.

  • nightly enables 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.

Related Projects

  • quantiles: Provides quantile estimates with bounded error but using growing space.
Commit count: 331

cargo fmt