sgolay(signal)
sgolay()所属R语言包:signal
Savitzky-Golay smoothing filters
savitzky-Golay平滑滤波器
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the filter coefficients for all Savitzky-Golay smoothing filters.
Savitzky-Golay平滑滤波器对所有的滤波器系数计算。
用法----------Usage----------
sgolay(p, n, m = 0, ts = 1)
参数----------Arguments----------
参数:p
filter order.
滤波器的阶数。
参数:n
filter length (must be odd).
过滤器长度(必须是奇数)。
参数:m
return the m-th derivative of the filter coefficients.
返回的第m个衍生物的滤波器系数。
参数:ts
time scaling factor.
时间比例因数。
Details
详细信息----------Details----------
The early rows of the result F smooth based on future values and later rows smooth based on past values, with the middle row using half future and half past. In particular, you can use row i to estimate x[k] based on the i-1 preceding values and the n-i following values of x values as y[k] = F[i,] * x[(k-i+1) k+n-i)].
早期行的结果F根据未来的价值和更高的行平滑根据过去的值,中间一排用了一半的未来和半光滑。特别是,你可以使用行i估计x[k]的i-1前n-i以下值的x值y[k] = F[i,] * x[(k-i+1) k+n-i)]。
Normally, you would apply the first (n-1)/2 rows to the first k points of the vector, the last k rows to the last k points of the vector and middle row to the remainder, but for example if you were running on a realtime system where you wanted to smooth based on the all the data collected up to the current time, with a lag of five samples, you could apply just the filter on row n-5 to your window of length n each time you added a new sample.
通常情况下,你将适用于(n-1)/2行第一k点的矢量,最后k行的最后k点的向量和中间行其余的,但举例来说,如果你正在运行一个实时系统,你想顺利的基础上收集的所有数据到当前的时间,具有滞后性的五个样本,你可以应用过滤器只是行<X >到你的窗口的长度n-5每次你添加了一个新的样本。
值----------Value----------
An square matrix with dimensions length(n) that is of
一个方阵,尺寸length(n)
(作者)----------Author(s)----------
Original Octave version by Paul Kienzle
<a href="mailto:pkienzle@users.sf.net">pkienzle@users.sf.net</a>. Modified by Pascal Dupuis. Conversion to R by Tom Short.
参考文献----------References----------
P. Flannery, Numerical Recipes in C: The Art of Scientific Computing , 2nd edition, Cambridge Univ. Press, N.Y., 1992.
参见----------See Also----------
sgolayfilt, filter
sgolayfilt,filter
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|