cheby1(signal)
cheby1()所属R语言包:signal
Generate a Chebyshev filter.
生成的切比雪夫滤波器。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generate a Chebyshev type I or type II filter coefficients with specified dB of pass band ripple.
生成指定的分贝通带纹波的切比雪夫I型或II型滤波器系数。
用法----------Usage----------
## Default S3 method:[默认方法]
cheby1(n, Rp, W, type = c("low", "high", "stop",
"pass"), plane = c("z", "s"), ...)
## S3 method for class 'FilterOfOrder'
cheby1(n, Rp = n$Rp, W = n$Wc, type = n$type, ...)
## Default S3 method:[默认方法]
cheby2(n, Rp, W, type = c("low", "high", "stop",
"pass"), plane = c("z", "s"), ...)
## S3 method for class 'FilterOfOrder'
cheby2(n, ...)
参数----------Arguments----------
参数:n
filter order or generic filter model
滤波器的阶数或一般的过滤器模型
参数:Rp
dB of pass band ripple
dB的通带纹波
参数:W
critical frequencies of the filter. W must be a scalar for low-pass and high-pass filters, and W must be a two-element vector c(low, high) specifying the lower and upper bands. For digital filters, W must be between 0 and 1 where 1 is the Nyquist frequency.
临界频率的过滤器。 W必须是一个标量的低通和高通滤波器,并W必须是一个两元素矢量c(low, high)指定的下限和上限的频带。对于数字滤波器,W必须是0和1,其中1是奈奎斯特频率之间。
参数:type
Filter type, one of "low" for a low-pass filter, "high" for a high-pass filter, "stop" for a stop-band (band-reject) filter, or "pass" for a pass-band filter.
的过滤器类型,其中"low"一个低通滤波器,"high"的高通滤波器,"stop"阻带(带阻)滤波器,或<X >一个带通滤波器。
参数:plane
"z" for a digital filter or "s" for an analog filter.
"z"一个数字滤波器或"s"一个模拟滤波器。
参数:...
additional arguments passed to cheby1 or cheby2, overriding those given by n of class FilterOfOrder.
额外的参数传递给cheby1或cheby2,覆盖给予的n的类FilterOfOrder的。
Details
详细信息----------Details----------
Because cheby1 and cheby2 are generic, they can be extended to accept other inputs, using "cheb1ord" to generate filter criteria for example.
由于cheby1和cheby2是通用的,可扩展至接受其他输入,使用"cheb1ord",例如过滤条件。
值----------Value----------
An Arma object with list elements:
Arma对象列表中的元素:
参数:b
moving average (MA) polynomial coefficients
移动平均线(MA)的多项式系数
参数:a
autoregressive (AR) polynomial coefficients
多项式系数自回归(AR)
For cheby1, the ARMA model specifies a type-I Chebyshev filter, and for cheby2, a type-II Chebyshev filter.
对于cheby1,ARMA模型指定的I型切比雪夫滤波器,并为cheby2,II型切比雪夫滤波器。
(作者)----------Author(s)----------
Original Octave version by Paul Kienzle
<a href="mailto:pkienzle@user.sf.net">pkienzle@user.sf.net</a>. Modified by Doug Stewart. Conversion to R by Tom Short.
参考文献----------References----------
参见----------See Also----------
Arma, filter, butter,
Arma,filter,butter,
实例----------Examples----------
# compare the frequency responses of 5th-order Butterworth and Chebyshev filters.[比较5阶巴特沃斯和切比雪夫滤波器的频率响应。]
bf <- butter(5, 0.1)
cf <- cheby1(5, 3, 0.1)
bfr <- freqz(bf)
cfr <- freqz(cf)
plot(bfr$f/pi, 20 * log10(abs(bfr$h)), type = "l", ylim = c(-40, 0),
xlim = c(0, .5), xlab = "Frequency", ylab = c("dB"))
lines(cfr$f/pi, 20 * log10(abs(cfr$h)), col = "red")
# compare type I and type II Chebyshev filters.[比较I型和II型切比雪夫滤波器。]
c1fr <- freqz(cheby1(5, .5, 0.5))
c2fr <- freqz(cheby2(5, 20, 0.5))
plot(c1fr$f/pi, abs(c1fr$h), type = "l", ylim = c(0, 1),
xlab = "Frequency", ylab = c("Magnitude"))
lines(c2fr$f/pi, abs(c2fr$h), col = "red")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|