majenkotech/Average — pull request #2 by catox0 (2014-12-11 09:39:25+00:00)
Title: Average.h: Use of circular buffer and sum variable for better performanc...

...e

(1) A circular buffer should be used to store the array values. This removes the requirement for shifting values in push().
(2) The sum of values should be updated continuously to accelerate the mean() calculation.

--> The functions push() and mean() don't have to loop over the array elements.