Ringbuffer averaging simplification.