26 unstable releases (12 breaking)

0.13.0 Apr 30, 2021
0.12.0 Mar 31, 2021
0.11.0 Mar 17, 2021
0.10.6 Sep 28, 2020
0.6.2 Jun 21, 2017

#23 in Science

Download history 1068/week @ 2021-01-15 673/week @ 2021-01-22 644/week @ 2021-01-29 591/week @ 2021-02-05 654/week @ 2021-02-12 779/week @ 2021-02-19 535/week @ 2021-02-26 568/week @ 2021-03-05 575/week @ 2021-03-12 866/week @ 2021-03-19 685/week @ 2021-03-26 489/week @ 2021-04-02 562/week @ 2021-04-09 758/week @ 2021-04-16 570/week @ 2021-04-23 722/week @ 2021-04-30

2,725 downloads per month
Used in 7 crates (5 directly)

MIT/Apache

91KB
2K SLoC

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).
  • serde1 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.

Rust version requirements

Rustc version 1.36 or greater is supported.

Related Projects

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

Dependencies

~100–670KB
~14K SLoC