public void FillWindow(float value) { for(int i = 0; i < size; i++) { val[i] = value; } sum = value * size; index = 0; windowIsFull = true; }