Instead of having fCurrentSample as an int, have it as an iterator so that we can use samples around the current one if we want to (e.g. for a 3-bin mean)