This diagram shows how a rolling average is calculated with a logical window.