Rstats - Rust Stats

GitHub last commit Crates.io

Synopsis

Rstats is a lean minimalistic library that only depends on anyhow (for its error handling).

The functions supplied compute means (arithmetic, geometric and harmonic) of i64 and f64 vectors.

They are implemented as trait methods. For example, v.amean() computes the arithmetic mean of vector v of type either Vec<i64> or Vec<f64> (or their slices).

Also included are:

Releases

Version 0.2.0 makes breaking change from function calls: amean(&v) to method invocations: v.amean().

More methods will be added in future versions.