movavg/lib.rs
1// -*- coding: utf-8 -*-
2//
3// Copyright 2021-2025 Michael Büsch <m@bues.ch>
4//
5// Licensed under the Apache License version 2.0
6// or the MIT license, at your option.
7// SPDX-License-Identifier: Apache-2.0 OR MIT
8//
9
10//! # Moving Average
11//!
12//! Generic Moving Average calculation for the integer types
13//!
14//! * i8, i16, i32, i64, i128, isize
15//! * u8, u16, u32, u64, u128, usize
16//!
17//! and float types
18//!
19//! * f32, f64
20//!
21//! # Cargo Features
22//!
23//! * `std` - If the cargo feature `std` is given, then all features that depend on
24//! the `std` library are enabled. This feature is enabled by default.
25//! Use `default-features = false` in your `Cargo.toml` to disable this feature.
26//! This crate is independent of the `std` library, if this feature is disabled.
27
28#![no_std]
29#[cfg(feature = "std")]
30extern crate std;
31
32mod sma;
33
34pub use sma::{MovAvg, MovAvgAccu};
35
36// vim: ts=4 sw=4 expandtab