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

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

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

                                         Decimate or downsample a signal
                                         消灭或缩减像素采样信号

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

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

Downsample a signal by a factor, using an FIR or IIR filter.  
降低采样率的信号的一个因素,使用FIR或IIR滤波器。


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


decimate(x, q, n = if (ftype == "iir") 8 else 30, ftype = "iir")



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

参数:x
signal to be decimated.  
信号被消灭。


参数:q
integer factor to downsample by.  
整数因子下采样。


参数:n
filter order used in the downsampling.  
降采样滤波器的阶数。


参数:ftype
filter type, "iir" or "fir"  
过滤器类型,"iir"或"fir"


Details

详细信息----------Details----------

By default, an order 8 Chebyshev type I filter is used or a 30-point FIR filter if ftype is 'fir'.  Note that q must be an integer for this rate change method.
默认情况下,一个8阶切比雪夫I型过滤器被用于或30点FIR滤波器ftype如果是'fir'。请注意,q必须是整数,这样的速度变化的方法。

Makes use of the filtfilt function with all its limitations.
使用的filtfilt功能与它的局限性。


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

The decimated signal, an array of length ceiling(length(x) / q).
被抽取的信号,一个数组的长度ceiling(length(x) / q)。


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


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


# The signal to decimate starts away from zero, is slowly varying[缓慢变化的信号,以消灭远离零开始,]
# at the start and quickly varying at the end, decimate and plot.[在开始和结束时,抽取和图的快速变化。]
# Since it starts away from zero, you will see the boundary[因为它远离零的开始,你会看到边界]
# effects of the antialiasing filter clearly.  You will also see[清楚的抗混叠滤波器的影响。您还可以看到]
# how it follows the curve nicely in the slowly varying early[它遵循的曲线很好地在缓慢变化的早期]
# part of the signal, but averages the curve in the quickly[部分的信号,但平均的曲线在迅速]
# varying late part of the signal.[变迟部分的信号。]
t <- seq(0, 2, by = 0.01)
x <- chirp(t, 2, 0.5, 10, 'quadratic') + sin(2*pi*t*0.4)
y &lt;- decimate(x, 4)   # factor of 4 decimation[因子4抽选]
plot(t, x, type = "l")
lines(t[seq(1,length(t), by = 4)], y, col = "blue")

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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