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

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

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

                                         FIR filter generation
                                         FIR滤波器生成

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

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

FIR filter coefficients for a filter with the given order and frequency cutoffs.
一个给定的顺序和截止频率的滤波器FIR滤波器系数。


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


fir2(n, f, m, grid_n = 512, ramp_n = grid_n/20, window = hamming(n + 1))



参数----------Arguments----------

参数:n
order of the filter (1 less than the length of the filter)  
滤波器的阶数(1的过滤器的长度小于)


参数:f
band edges, strictly increasing vector in the range [0, 1] where 1 is the Nyquist frequency. The first element must be 0 and the last element must be 1. If elements are identical, it indicates a jump in frequency response.  
带的边缘,严格矢量的范围是[0,1],其中1是奈奎斯特频率。第一个元素必须为0,最后一个元素必须是1。如果元素是相同的,它表示在频率响应的跳转。


参数:m
magnitude at band edges, a vector of length(f).  
带边缘,大小的向量length(f)。


参数:grid_n
length of ideal frequency response function defaults to 512, should be a power of 2 bigger than n.  
理想的频率响应函数默认长度为512,应该是一个功率大于n。


参数:ramp_n
transition width for jumps in filter response defaults to grid_n/20. A wider ramp gives wider transitions but has better stopband characteristics.  
跳跃的滤波器响应默认grid_n/20的转变宽度。一个更广泛的斜坡提供了更广泛的过渡,但有更好的阻带特性。


参数:window
smoothing window. The returned filter is the same shape as the smoothing window.  
平滑窗口。返回的滤波器是相同的形状的平滑窗口。


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

The FIR filter coefficients, an array of length(n+1), of class Ma.
的FIR滤波器的系数,一个数组length(n+1),类Ma。


(作者)----------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, Ma,
filter,Ma,


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


f <- c(0, 0.3, 0.3, 0.6, 0.6, 1)
m <- c(0, 0, 1, 1/2, 0, 0)
fh <- freqz(fir2(100, f, m))
op <- par(mfrow = c(1, 2))
plot(f, m, type = "b", ylab = "magnitude", xlab = "Frequency")
lines(fh$f / pi, abs(fh$h), col = "blue")
# plot in dB:[图以dB为单位:]
plot(f, 20*log10(m+1e-5), type = "b", ylab = "dB", xlab = "Frequency")
lines(fh$f / pi, 20*log10(abs(fh$h)), col = "blue")
par(op)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 19:08 , Processed in 0.026606 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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