windowed_mean

Function windowed_mean 

Source
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.