Function ringbuffer_iteration::windowed_mean[][src]

pub fn windowed_mean<T, const N: usize>(
    buffer: &RingBuffer<T, N>,
    window_len: usize
) -> T where
    T: PrimInt
Expand description

Calculate the mean of the last window_len values inside buffer.

See mean for details.