共 50 条
N-Step Sliding Recursion Formula of Variance and Its Implementation
被引:1
|作者:
Yu, Lang
[1
]
He, Gang
[2
]
Mutahir, Ahmad Khwaja
[2
]
机构:
[1] Southwest Univ Sci & Technol, Sch Sci, Mianyang, Sichuan, Peoples R China
[2] Southwest Univ Sci & Technol, Sch Comp Sci & Technol, Mianyang, Sichuan, Peoples R China
来源:
关键词:
Algorithm Complexity;
Multi-Step Recursion Algorithm;
Sliding Window;
Variance;
D O I:
10.3745/JIPS.04.0182
中图分类号:
TP [自动化技术、计算机技术];
学科分类号:
0812 ;
摘要:
The degree of dispersion of a random variable can be described by the variance, which reflects the distance of the random variable from its mean. However, the time complexity of the traditional variance calculation algorithm is O(n), which results from full calculation of all samples. When the number of samples increases or on the occasion of high speed signal processing, algorithms with O(n) time complexity will cost huge amount of time and that may results in performance degradation of the whole system. A novel multi-step recursive algorithm for variance calculation of the time-varying data series with O(1) time complexity (constant time) is proposed in this paper. Numerical simulation and experiments of the algorithm is presented and the results demonstrate that the proposed multi-step recursive algorithm can effectively decrease computing time and hence significantly improve the variance calculation efficiency for time-varying data, which demonstrates the potential value for time-consumption data analysis or high speed signal processing.
引用
收藏
页码:832 / 844
页数:13
相关论文