pub fn new(sample_size: usize, initial_value: usize) -> RollingAverage {
        let mut samples = VecDeque::with_capacity(sample_size);
        samples.push_back(initial_value);

        RollingAverage {
            samples,
            current_average: initial_value,
        }
    }
/// Creates a new `RollingAverage`
Creates a new `RollingAverage`
Creates a new ` RollingAverage `
pub fn new(sample_size: usize, initial_value: usize) -> RollingAverage {
        let mut samples = VecDeque::with_capacity(sample_size);
        samples.push_back(initial_value);
        RollingAverage {
            samples,
            current_average: initial_value,
        }
    }
pub fn new ( sample_size : usize , initial_value : usize ) -> RollingAverage { let mut samples = VecDeque :: with_capacity ( sample_size ) ; samples . push_back ( initial_value ) ; RollingAverage { samples , current_average : initial_value , } }
Creates a new `RollingAverage`
Creates a new ` RollingAverage `
sample_size
usize
initial_value
usize
sample_size
usize
initial_value
usize