use-average 0.0.1

Small statistical average helpers over f64 slices.
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 7 items with examples
  • Size
  • Source code size: 6.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 340.86 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-stats
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

Average helpers for f64 slices.

The crate stays intentionally small and focuses on the most common mean-style summaries without introducing a broader statistics framework.

Examples

use use_average::{arithmetic_mean, moving_average};

assert_eq!(arithmetic_mean(&[2.0, 4.0, 6.0]).unwrap(), 4.0);
assert_eq!(moving_average(&[1.0, 2.0, 3.0, 4.0], 2).unwrap(), vec![1.5, 2.5, 3.5]);