25d894a2f6
This lets us get rid of the num-integer dependency and makes the performance of the code generated by `define_moments` close to that of `Kurtosis`. Before, it was several times slower. However, the custom implementation is more vulnerable to integer overflow. In practise, this should not matter, since it does not make sense to calculate moments of very high order. |
||
---|---|---|
benches | ||
src | ||
tests | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
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 optional feature is available:
serde1
enables serialization, via Serde version 1.
Rust version requirements
Rustc version 1.22 or greater is supported.
Related Projects
quantiles
: Provides quantile estimates with bounded error but using growing space.