Fast moving average
版本 1.2.0.0 (2.3 KB) 作者:
Christian Kothe
A fast implementation of the moving average filter for long kernels.
In terms of behavior, this is an alternative to filter() for a moving-average kernel. The running time does not grow with filter length beyond N=500.
The code uses a variant of the cumsum-trick, although not the "garden variety" but in a way that does not run into numerical issues for long data arrays.
The function is suitable for incremental (online) processing.
引用格式
Christian Kothe (2024). Fast moving average (https://www.mathworks.com/matlabcentral/fileexchange/34567-fast-moving-average), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2011b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Signal Processing Toolbox 的更多信息
标签
致谢
启发作品: downsample_ts
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!