filter(signal)
filter()所属R语言包:signal
Filter a signal.
对信号进行滤波。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generic filtering function. The default is to filter with an ARMA filter of given coefficients. The default filtering operation follows Matlab/Octave conventions.
通用的过滤功能。默认值是给定的系数为ARMA过滤器进行过滤。默认过滤操作如下MATLAB /倍频公约。
用法----------Usage----------
## Default S3 method:[默认方法]
filter(filt, a, x, ...)
## S3 method for class 'Arma'
filter(filt, x, ...)
## S3 method for class 'Ma'
filter(filt, x, ...)
## S3 method for class 'Zpg'
filter(filt, x, ...)
参数----------Arguments----------
参数:filt
For the default case, the moving-average coefficients of an ARMA filter (normally called "b"). Generically, filt specifies an arbitrary filter operation.
默认情况下,移动平均系数的一种ARMA过滤器(通常称为b的)。一般地,filt指定任意的过滤操作。
参数:a
the autoregressive (recursive) coefficients of an ARMA filter.
自回归系数(递归)的ARMA过滤器。
参数:x
the input signal to be filtered.
的输入信号进行过滤。
参数:...
additional arguments (ignored).
额外的参数(忽略)。
Details
详细信息----------Details----------
The default filter is an ARMA filter defined as:
默认的过滤器是一个ARMA滤波器定义为:
The default filter calls stats:::filter, so it returns a time-series object.
默认的过滤器调用stats:::filter,所以它返回一个时间序列对象。
Since filter is generic, it can be extended to call other filter types.
因为filter是通用的,它可以被扩展到调用其他的过滤器类型。
值----------Value----------
The filtered signal, normally of the same length of the input signal x.
滤波后的信号,通常具有相同的长度的输入信号x。
(作者)----------Author(s)----------
Tom Short, EPRI Solutions, Inc., (<a href="mailto:tshort@eprisolutions.com">tshort@eprisolutions.com</a>)
参考文献----------References----------
参见----------See Also----------
filter in the stats package, Arma,
filter中stats包,Arma,
实例----------Examples----------
bf <- butter(3, 0.1) # 10 Hz low-pass filter[10 Hz低通滤波器]
t <- seq(0, 1, len = 100) # 1 second sample[1第二个示例]
x <- sin(2*pi*t*2.3) + 0.25*rnorm(length(t)) # 2.3 Hz sinusoid+noise[2.3 Hz的正弦信号+噪声]
z <- filter(bf, x) # apply filter[应用过滤器]
plot(t, x, type = "l")
lines(t, z, col = "red")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|