KevsMath Simple mathematical odds and sods for .Net. MovingAverage() setSubSetSize(n) Sets the size of the moving sub set. add(double) Add an item to the values to be averaged. calculate() Returns the average for the last n items.