Mean calculated for currentBuffer divided into windows