summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: eff2e7f0c148c750ba2d693f3a32f08b5c672fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// -*- coding: utf-8 -*-
//
// Copyright 2021 Michael Büsch <m@bues.ch>
//
// Licensed under the Apache License version 2.0
// or the MIT license, at your option.
// SPDX-License-Identifier: Apache-2.0 OR MIT
//

//! # Moving Average
//!
//! Generic Moving Average calculation for the integer types
//!
//! * i8, i16, i32, i64, i128, isize
//! * u8, u16, u32, u64, u128, usize
//!
//! and float types
//!
//! * f32, f64
//!
//! # Cargo Features
//!
//! * `std` - If the cargo feature `std` is given, then all features that depend on
//!           the `std` library are enabled. This feature is enabled by default.
//!           Use `default-features = false` in your `Cargo.toml` to disable this feature.
//!           This crate is independent of the `std` library, if this feature is disabled.

#![no_std]
#[cfg(feature="std")]
extern crate std;

mod sma;

pub use sma::{
    MovAvg,
    MovAvgAccu,
};

// vim: ts=4 sw=4 expandtab
bues.ch cgit interface