Rolling statistics

版本 1.0.0.0 (51.7 KB) 作者: Jean-Yves Tinevez
Convenience utility made to compute descriptive statistics without storing data.
383.0 次下载
更新时间 2013/1/25

查看许可证

Getting the mean of a sample data is easy in MATLAB: you collect all the data in an array and simply call mean on it. But what if the data is far too large to be stored all at once? Or if it is generated live, and you do not know in advance when data generation will end?

The utility class described here fill these two use cases. At the cost of time (using a class in MATLAB is costy), it generates the most important statistics descriptors of a dataset in a rolling fashion. Each data item is appended one by one. They are not stored in the memory, and therefore the memory cost is independant of the sample size. Statistics can accessed anytime. And as shown in case two, the class can transparently operate on data item that are scalars, arrays, matrices, and images.

Two example applications are described in a published html page. The second one requires the image processing toolbox.

引用格式

Jean-Yves Tinevez (2024). Rolling statistics (https://www.mathworks.com/matlabcentral/fileexchange/40014-rolling-statistics), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0