Moving-window mean and variance

버전 1.2.0.0 (3.32 KB) 작성자: Dennis
Efficient computation of moving-window mean and moving-window variance
다운로드 수: 1.6K
업데이트 날짜: 2014/7/2

라이선스 보기

This function computes the moving-window mean (also know as moving average) and moving-window variance of a sequence of one-dimensional or two-dimensional data frames (e.g. a sequence of images). For two-dimensional data, the moving-window mean and variance are computed per individual entry (e.g. per pixel).
The expressions were derived using the approach of [Welford, 1962], who provides expressions for the running mean and running variance.
The running mean and variance are calculated during start-up (i.e. while the window is not yet full).
References:
Welford, BP, "Note on a method for calculating corrected sums of squares and products." Technometrics, 4(3), pp.419-420, 1962.
NOTE: In the present implementation a moving history is maintained (similar to a shift register). This might still represent quite a computational burden. If memory size permits, one could maintain a longer history that is shifted only when full. This will be implemented in a future release.

인용 양식

Dennis (2024). Moving-window mean and variance (https://www.mathworks.com/matlabcentral/fileexchange/47061-moving-window-mean-and-variance), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Mathematics and Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Added a note to the file description

1.1.0.0

changed title

1.0.0.0