algorithmz 1.3.1

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
8
use algorithmz::queue::MovingAverage;

#[test]
fn test_moving_average() {
    let mut ma = MovingAverage::new(3);
    assert_eq!(ma.next(1),1.0);
    assert_eq!(ma.next(10),5.5);
}