找回密码
 注册
查看: 554|回复: 0

R语言 signal包 filtfilt()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:09:12 | 显示全部楼层 |阅读模式
filtfilt(signal)
filtfilt()所属R语言包:signal

                                         Forward and reverse filter a signal
                                         正向和反向信号进行滤波

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Using two passes, forward and reverse filter a signal.
使用两关,正向和反向信号进行滤波。


用法----------Usage----------


## Default S3 method:[默认方法]
filtfilt(filt, a, x, ...)

## S3 method for class 'Arma'
filtfilt(filt, x, ...)

## S3 method for class 'Ma'
filtfilt(filt, x, ...)

## S3 method for class 'Zpg'
filtfilt(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----------

This corrects for phase distortion introduced by a one-pass filter, though it does square the magnitude response in the process. That's the theory at least.  In practice the phase correction is not perfect, and magnitude response is distorted, particularly in the stop band.
这校正相位失真引入由一个通滤波器,尽管它在这个过程中的正方形的幅度响应。这至少从理论上看。在实践中,相位校正是不完美的,失真和幅度响应,特别是在阻带。

In this version, we zero-pad the end of the signal to give the reverse filter time to ramp up to the level at the end of the signal. Unfortunately, the degree of padding required is dependent on the nature of the filter and not just its order, so this function needs some work yet - and is in the state of the year 2000 version of the Octave code.
在这个版本中,我们零焊盘的信号,得到的反向滤波器的时间上升的水平的信号结束时结束。不幸的是,需要填充的程度是依赖性质的过滤器,不只是为了,所以这个功能需要一些工作,但 - 是在2000年版的八度音的代码的状态。

Since filtfilt is generic, it can be extended to call other filter types.
因为filtfilt是通用的,它可以被扩展到调用其他的过滤器类型。


值----------Value----------

The filtered signal, normally the same length as the input signal x.
滤波后的信号,作为输入信号x通常是相同的长度。


(作者)----------Author(s)----------


Original Octave version by Paul Kienzle,
<a href="mailto:pkienzle@user.sf.net">pkienzle@user.sf.net</a>. Conversion to R by Tom Short.



参考文献----------References----------



参见----------See Also----------

filter, Arma,
filter,Arma,


实例----------Examples----------


bf &lt;- butter(3, 0.1)                        # 10 Hz low-pass filter[10 Hz低通滤波器]
t &lt;- seq(0, 1, len = 100)                   # 1 second sample[1第二个示例]
x &lt;- sin(2*pi*t*2.3) + 0.25*rnorm(length(t))# 2.3 Hz sinusoid+noise[2.3 Hz的正弦信号+噪声]
y <- filtfilt(bf, x)
z &lt;- filter(bf, x) # apply filter[应用过滤器]
plot(t, x)
points(t, y, col="red")
points(t, z, col="blue")
legend("bottomleft", legend = c("data", "filtfilt", "filter"),
       pch = 1, col = c("black", "red", "blue"), bty = "n")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-22 14:42 , Processed in 0.025938 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表