Sgolayfilt
Savitzky-Golay过滤
句法
y = sgolayfilt(x,订单,弗拉梅伦)
y = sgolayfilt(x,order,framelen,重量)
y = sgolayfilt(x,order,framelen,重量,昏暗)
描述
y = sgolayfilt(x,订单,弗拉梅伦)
applies a Savitzky-Golay FIR smoothing filter to the data in vectorX
。如果X
是矩阵,Sgolayfilt
在每一列上操作。多项式秩序,命令
,必须小于框架长度,弗拉梅伦
,然后弗拉梅伦
must be odd. If命令
=弗拉梅伦-1
,过滤器不会产生平滑。
y = sgolayfilt(x,order,framelen,重量)
specifies a weighting vector,权重
,,,,with length弗拉梅伦
,其中包含在最小二乘最小化过程中要使用的真实,积分的权重。如果权重
未指定,或者如果将其指定为空,[]
,它默认为身份矩阵。
y = sgolayfilt(x,order,framelen,重量,昏暗)
指定维度,暗淡
,过滤器运行。如果暗淡
未指定,Sgolayfilt
沿着第一个nonsingleton维度运行;也就是说,对于列向量和非平凡矩阵的维度1,而行向量的尺寸2。
例子
提示
Savitzky-Golay smoothing filters (also called digital smoothing polynomial filters or least-squares smoothing filters) are typically used to “smooth out” a noisy signal whose frequency span (without noise) is large. In this type of application, Savitzky-Golay smoothing filters perform much better than standard averaging FIR filters, which tend to filter out a significant portion of the signal's high frequency content along with the noise. Although Savitzky-Golay filters are more effective at preserving the pertinent high frequency components of the signal, they are less successful than standard averaging FIR filters at rejecting noise.
Savitzky-Golay滤波器在将多项式拟合到嘈杂数据框架时最小二乘错误的意义是最佳的。
References
[1] Orfanidis,Sophocles J.信号处理简介。新泽西州Englewood Cliffs:Prentice-Hall,1996年。