#moving-average #no-std #no-alloc #no-std-moving-average

no-std no-std-moving-average

Moving average filter for use in nostd environments

1 unstable release

Uses new Rust 2024

new 0.2.0 Apr 30, 2025

#1989 in Algorithms

MIT/Apache

23KB
427 lines

No-Std-Moving-Average Cloud-CI crates.io crates.io

This supplies a moving average algorithm that can be used in a nostd environment.

To ensure that the behavior is consistent, the first insertion stuffs the entire buffer with the first value.

Limitations

This library only supports integer quantities.

Attribution

Work creating this library was performed as part of commercial development by Kelvin (formerly Radiator Labs), a green energy company dedicated to decarbonizing the world's legacy buildings.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.86 and up. It might compile with older versions but that may change in any new patch release. Changes in Clippy support are the main factor driving the version dependency.

See here for details on how the MSRV may be upgraded.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

end

Dependencies

~480KB