<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 12:11 AM, Michael Orlitzky <span dir="ltr"><<a href="mailto:michael@orlitzky.com" target="_blank">michael@orlitzky.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":yu" style="overflow:hidden">Inline below is some code that uses this idea along with a "scan"<br>
(similar to a fold) to accomplish the moving average. </div></blockquote></div><br></div><div class="gmail_extra">Hi Michael,<br><br></div><div class="gmail_extra">When I read OP's request, I understood it as what Ozgur had interpreted, i.e. last N items for a /constant/ N, also known as a moving window average.<br>

<br></div><div class="gmail_extra">Your running average solution is interesting too!<br></div><div class="gmail_extra"><br clear="all"><div>-- Kim-Ee</div>
</div></div>