You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, while I know it's not difficult to write a moving average function, I find I often need to calculate moving averages, and since moving averages are often used as and act like low pass filters, I feel like they ought to belong in a package like DSP.
If there's interest, I'd like to make a pull request for an implementation of a moving average function, a moving average function that repeatedly averages over a signal n times as well as mutating/non-mutating versions as appropriate. It may also be worth it to use conv / filter at some length / number of repeated averages, especially since multiple moving averages can probably be expressed as a convolution, requiring only one pass over a signal.
The text was updated successfully, but these errors were encountered:
My understanding is that a repeated moving average can be accomplished by convolving the rectangular window with itself however many times the average is repeated, and then convolve the resulting filter with the data to be averaged over.
Anyways if you're interested in putting together a PR to make this process easier, I think that might be useful.
So, while I know it's not difficult to write a moving average function, I find I often need to calculate moving averages, and since moving averages are often used as and act like low pass filters, I feel like they ought to belong in a package like DSP.
If there's interest, I'd like to make a pull request for an implementation of a moving average function, a moving average function that repeatedly averages over a signal n times as well as mutating/non-mutating versions as appropriate. It may also be worth it to use
conv
/filter
at some length / number of repeated averages, especially since multiple moving averages can probably be expressed as a convolution, requiring only one pass over a signal.The text was updated successfully, but these errors were encountered: