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

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

[复制链接]
发表于 2012-10-1 13:03:24 | 显示全部楼层 |阅读模式
prepComb(tuneR)
prepComb()所属R语言包:tuneR

                                        Preparing the combination/concatenation of Wave objects
                                         ,准备组合/波对象的串联

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

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

Preparing objects of class Wave for binding/combination/concatenation by removing small amounts at the beginning/end of the Wave in order to make the transition smooth by avoiding clicks.
准备类的对象Wave的绑定/组合/级联为了使平滑过渡,避免点击,除去少量的浪潮的开始/结束。


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


prepComb(object, zero = 0, where = c("both", "start", "end"))



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

参数:object
Object of class Wave.
对象类Wave。


参数:zero
The zero level (default: 0) at which ideal cut points are determined (see Details). A typical alternative would be 127 for 8 bit Wave objects. If zero=NA, the mean of the left Wave channel is taken as zero level.
零级(默认值:0),在理想的切点确定(见详情)。一个典型的另一种方法是127为8位Wave对象。如果zero=NA,左波信道的平均值的零电平被取为。


参数:where
One of “both” (default), “start”, or “end” indicating at where to prepare the Wave object for concatenation.
“既”(默认),“开始”,或“结束”,表示在where准备Wave对象串联的。


Details

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

This function is useful to prepare objects of class Wave for binding/combination/concatenation. At the side(s) indicated by where small amounts of the Wave are removed in order to make the transition between two Waves smooth (avoiding clicks).
此功能是非常有用的对象的类Wave绑定/组合/级联。在侧面(S)表示where少量的波被删除,以使两波之间的平滑过渡(避免点击)。

This is done by dropping all values at the beginning of a Wave before the first positive point  after the zero level is crossed from negative to positive. Analogously, at the end of a Wave all points are cut after the last negative value  before the last zero level crossing from negative to positive.
这是通过在开始的波前删除所有值后的第一个积极的角度zero水平由负到正穿过。类似地,结束时的波点被切断后,最后负值前的最后zero平交路口由负到正。


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

An object of class Wave.
对象的类Wave。


注意----------Note----------

If stereo, only the left channel is analyzed while the right channel will be simply cut at the same locations.
如果立体声,左声道分析,在相同的位置,而右边的通道将被简单地削减。


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


Uwe Ligges, <a href="mailto:ligges@statistik.tu-dortmund.de">ligges@statistik.tu-dortmund.de</a>,
based on code from Matthias Heymann's former package &lsquo;sound&rsquo;.



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

bind, Wave-class, Wave, extractWave, and noSilence to cut off silence
bind,波级,Wave,extractWave,noSilence切断沉默


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


Wobj1 <- sine(440, duration = 520, bit = 16)
Wobj2 <- extractWave(sine(330, duration = 500, bit = 16), from = 110, to = 500)
par(mfrow = c(2,1))
plot(bind(Wobj1, Wobj2), xunit = "samples")
abline(v = 520, col = "red")  # here is a "click"![这里是一个“点击”!]

# now remove the "click" by deleting a minimal amount of information:[现在可以删除“,单击”删除少量的信息:]
Wobj1 <- prepComb(Wobj1, where = "end")
Wobj2 <- prepComb(Wobj2, where = "start")
plot(bind(Wobj1, Wobj2), xunit = "samples")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 19:03 , Processed in 0.024099 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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