一种RMS计算方法,方便编程
一种RMS计算方法
均方根值(RMS)
http://s2/bmiddle/001HPieozy79XHiIbrH81&690
标准差
http://s15/bmiddle/001HPieozy79XHjquM65e&690
均方根误差
http://s15/bmiddle/001HPieozy79XHjXyHQ5e&690
在计算均方根RMS数值时,如果求和得到http://s10/bmiddle/001HPieozy79XHl96oV09&690,随着数据量的增加会变得超出范围,因此采用另一种方法规避求和过程
http://s12/bmiddle/001HPieozy79XHlI8n98b&690
下面是一组在Matlab下数据验证
原始数据
A =
Columns 1 through 12
Columns 13 through 24
Columns 25 through 30
0.4984
采用第一种方法计算RMS的结果
root =
Columns 1 through 12
Columns 13 through 24
Columns 25 through 30
采用新的方法计算RMS的结果
root1 =
Columns 1 through 12
Columns 13 through 24
Columns 25 through 30
0.5303
两种方法之间的误差为
>> root-root1
ans =
Columns 1 through 12
Columns 13 through 24
Columns 25 through 30
计算结果得到两种方法误差是14倍,因此可以忽略误差。

加载中…