pub fn prefix_average_1(avg: &[f32]) -> Vec<f32>
Calculates a prefix average of an array in O(n) time