moving window for statistic averages