33 releases
| 0.16.0 | Mar 12, 2025 |
|---|---|
| 0.15.1 | Apr 26, 2024 |
| 0.15.0 | Mar 22, 2024 |
| 0.14.1 | Jul 4, 2023 |
| 0.6.2 | Jun 21, 2017 |
#5 in No standard library
168,949 downloads per month
Used in 39 crates
(24 directly)
105KB
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.
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).serdeenables 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.
Related Projects
quantiles: Provides quantile estimates with bounded error but using growing space.
Dependencies
~90–730KB
~14K SLoC