use-distribution 0.0.1

Basic distribution summaries and histogram helpers over f64 slices.
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 8 items with examples
  • Size
  • Source code size: 6.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 394.25 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 31s Average build duration of successful builds.
  • all releases: 31s 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

Basic distribution summaries for f64 slices.

The helpers cover minimum and maximum lookup, range calculation, frequency counts, and a small equal-width histogram representation.

Examples

use use_distribution::{frequency_counts, histogram, range};

assert_eq!(range(&[1.0, 3.0, 5.0]).unwrap(), 4.0);
assert_eq!(frequency_counts(&[1.0, 1.0, 2.0]).unwrap(), vec![(1.0, 2), (2.0, 1)]);
assert_eq!(histogram(&[1.0, 2.0, 2.0, 3.0, 4.0], 3).unwrap().len(), 3);