Using a moving average, check that a value is within bounds.