smoothdata
对含噪数据进行平滑处理
语法
说明
使用一个或多个名称-值参量指定用于平滑处理的其他参数。例如,如果 B = smoothdata(___,Name,Value)t 是时间值向量,则 smoothdata(A,"SamplePoints",t) 相对于 t 中的时间对 A 中的数据进行平滑处理。
示例
输入参数
名称-值参数
输出参量
详细信息
算法
当没有为平滑处理方法指定窗口大小时,smoothdata 将基于启发式算法计算默认窗口大小。对于平滑处理因子 τ,启发式算法将估算其衰减量大约为输入数据能量的 100*τ% 的移动平均窗口大小。










![Given elements 1 to 7, if the current sample point is 4, then the corresponding window spans the range [2, 6].](movwindow_vector.png)
![Given elements 1 to 7, if the current sample point is 2, then the corresponding window spans the range [1, 4].](movwindow_edgetruncate.png)
![Given elements 1 to 7, if the current sample point is 2, then the corresponding window spans the range [1, 5].](movwindow_edgeslide.png)