image thumbnail

rollstat( y, window, slide,funin)

version (4.15 KB) by Carl Witthoft
Apply function to rolling window. Non-uniform sample spacings allowed


Updated 18 Aug 2015

View License

Unlike most rolling-window tools, rollstat accepts a time-series (or other sequence) of samples which are not necessarily equally spaced -- in fact multiple samples at a given x-value are allowed. The "window" and "slide" arguments are used to group the samples by the true time/distance window regardless of how many samples end up assigned to a given window. There's a default statistic function or the user can supply his own function.

Cite As

Carl Witthoft (2021). rollstat( y, window, slide,funin) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!