JeffreySarnoff / RollingFunctions.jl

Roll a window over data; apply a function over the window.
MIT License
117 stars 7 forks source link

rollsum, runsum #20

Open Mastomaki opened 2 years ago

Mastomaki commented 2 years ago

Thanks for this package! I kindly request rollsum and runsum functions. And more documentation on the custom functions running(function, data, windowsize).

JeffreySarnoff commented 2 years ago
using RollingFunctions

rollsum(data, windowsize) = rolling(sum, data, windowsize)
runsum(data, windowsize) = running(sum, data, windowsize)

hope that helps -- I will add the examples to the README.md