[Numpy-discussion] ENH: Add Moving Average Function

Nicholas Georgescu nsg27 at case.edu
Sun Aug 25 18:30:15 EDT 2019


Hi all,

I opened a Pull Request (https://link.getmailspring.com/link/58478F5E-3390-4C6D-8AA4-0B8724FC079A@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fnumpy%2Fnumpy%2Fpull%2F13923&recipient=bnVtcHktZGlzY3Vzc2lvbkBweXRob24ub3Jn) to include this package in numpy (https://link.getmailspring.com/link/58478F5E-3390-4C6D-8AA4-0B8724FC079A@getmailspring.com/1?redirect=https%3A%2F%2Fpypi.org%2Fproject%2Fmvgavg%2F&recipient=bnVtcHktZGlzY3Vzc2lvbkBweXRob24ub3Jn), along with the associated sliding window function in this PR (https://link.getmailspring.com/link/58478F5E-3390-4C6D-8AA4-0B8724FC079A@getmailspring.com/2?redirect=https%3A%2F%2Fgithub.com%2Fnumpy%2Fnumpy%2Fissues%2F7753&recipient=bnVtcHktZGlzY3Vzc2lvbkBweXRob24ub3Jn).

The function picks the fastest method to do a moving average if there is no weighting, but with weights it resorts to the second-fastest method which has an easier implementation. It also contains a binning option which cuts the number of points down by a factor of n rather than by subtracting n. The details are in the package documentation and PR.

Thanks,
Nicholas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190825/10ecf702/attachment.html>


More information about the NumPy-Discussion mailing list