public MovingAverage(UInt32 windowSize) { sum = 0.0f; size = windowSize; index = 0; val = new float[size]; windowIsFull = false; }