10 releases (4 stable)

3.0.1 Dec 5, 2021
3.0.0 Mar 5, 2021
2.0.0 Mar 4, 2021
1.0.0 Jan 4, 2019
0.0.3 Apr 5, 2017

#8 in #percentile

Download history 1654/week @ 2024-07-20 1934/week @ 2024-07-27 1986/week @ 2024-08-03 2234/week @ 2024-08-10 1619/week @ 2024-08-17 1560/week @ 2024-08-24 1505/week @ 2024-08-31 1337/week @ 2024-09-07 1051/week @ 2024-09-14 1628/week @ 2024-09-21 1551/week @ 2024-09-28 1437/week @ 2024-10-05 1479/week @ 2024-10-12 1374/week @ 2024-10-19 897/week @ 2024-10-26 1573/week @ 2024-11-02

5,452 downloads per month
Used in serenade

MIT license

44KB
822 lines

Stats CLI

crates.io documentation tests MIT License

Rust package for efficiently computing statistics on floating point numbers from the command line. This contains both a command line binary and a rust library with incremental statistics objects. Currently only summary statistics (min, mean, variance), percentiles, and mode are supported.

See the rust documentation for the library api, or the cli help for usage.

To Do

  • Add sketches (many other crates do this)
  • Add testing to cli
  • Weigh tradeoffs behind DerefCopy trait vs Borrow + Copy

lib.rs:

Module with incremental statistics functions

This contains helper functions for computing statistics on iterators, as well as structs that support incremental addition of data.

Dependencies

~2MB
~27K SLoC