use-simple-filter 0.0.1

Primitive moving-average and first-order filter helpers
Documentation
  • Coverage
  • 11.11%
    1 out of 9 items documented1 out of 5 items with examples
  • Size
  • Source code size: 6.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 331.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-signal
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

Primitive filtering helpers.

The crate intentionally keeps filtering narrow: a causal moving average plus first-order low-pass and high-pass filters.

Examples

use use_simple_filter::{first_order_low_pass, moving_average_filter};

assert_eq!(moving_average_filter(&[1.0, 3.0, 5.0], 2).unwrap(), vec![1.0, 2.0, 4.0]);
assert_eq!(first_order_low_pass(&[0.0, 1.0, 1.0], 0.5).unwrap(), vec![0.0, 0.5, 0.75]);