pastew(seewave)
pastew()所属R语言包:seewave
Paste a time wave to another one
粘贴波到另一个
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function pastes a first time wave to a second one. The time wave to be pasted, the time wave to be completed and the resulting time wave can be displayed in a three-frame oscillographic plot.
此函数粘贴的第一时间到第二个波。要粘贴的时间波,时间波来完成和由此产生的时间波形可以显示在三帧示波图。
用法----------Usage----------
pastew(wave1, wave2, f, at = "end", join = FALSE, choose = FALSE, plot = FALSE,
marks = TRUE, output = "matrix", ...)
参数----------Arguments----------
参数:wave1
a first R object.
第一个R对象。
参数:wave2
a second R object.
第二个R对象。
参数:f
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
wave(赫兹)的采样频率。不需要以指定如果嵌入在wave,。
参数:at
wave2 position in seconds where wave1 will be pasted into. Can be also specified as "start", "middle" or "end".
wave2其中wave1将被粘贴到以秒为单位的位置。也可以指定为"start","middle"或"end"。
参数:join
if TRUE the two waves will be pasted and jointed by removing the last point of wave2. See examples.
如果TRUE两波将粘贴和删除的最后一点WAVE2连接。见的例子。
参数:choose
logical, if TRUE the point where wave1 will be pasted into wave2 (=at) can be graphically chosen with a cursor.
逻辑,如果TRUE点wave1将被粘贴到wave2(at)可以以图形方式显示与光标选择。
参数:plot
logical, if TRUE returns an oscillographic plot of wave1, wave2 and wave1 + wave2 (by default FALSE).
逻辑,如果TRUE返回一个的示波图的wave1,wave2和wave1+wave2FALSE(默认情况下)。
参数:marks
logical, if TRUE shows where wave1 has been pasted (by default TRUE).
逻辑,如果TRUE显示wave1已经被粘贴(默认情况下TRUE)。
参数:output
character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
字符串,返回类的对象,是"matrix","Wave","Sample","audioSample"或"ts"。
参数:...
other oscillo graphical parameters.
其他oscillo图形参数。
Details
详细信息----------Details----------
If plot is TRUE returns a two-frame plot with three waves:<br> (1) the wave to be pasted (wave1),<br> (2) the wave to be completed (wave2),<br>
如果plot是TRUE返回一个两帧的图用三浪:参考:(1)波被粘贴(wave1),参考(2)波完成(wave2),参考
值----------Value----------
If plot is FALSE, a new wave is returned. The class
如果plotFALSE,新一波返回。类
(作者)----------Author(s)----------
Jerome Sueur <a href="mailto:sueur@mnhn.fr">sueur@mnhn.fr</a>
参见----------See Also----------
oscillo, addsilw, cutw, deletew, fadew, mutew
oscillo,addsilw,cutw,deletew,fadew,mutew
实例----------Examples----------
data(tico)
# double a data set describing a bird song[一个数据集描述的鸟歌的两倍]
a<-pastew(tico,tico,f=22050)
oscillo(a,f=22050)
# a direct way to see what has been pasted[一个直接的方式已粘贴]
pastew(tico,tico,f=22050,plot=TRUE)
# cut a section and then paste it at the beginning[剖切断面,然后将其粘贴在开始]
a<-cutw(tico, f=22050, from=0.5, to=0.9)
pastew(a,tico,f=22050,at="start",plot=TRUE)
# or paste it at a specific location[或将其粘贴在一个特定的位置]
pastew(a,tico,f=22050,at=1.4,plot=TRUE)
# setting the argument 'join' to TRUE might be useful[可能是有用的参数设置为TRUE“加入”]
# to smooth pasting when some phase problem occur[顺利粘贴时出现一些相位问题]
# generate two sine waves[生成两个正弦波]
a <- synth(cf=50, f=400, d=0.1)
b <- synth(cf=100, f=400, d=0.1)
# paste it with 'join' turned to FALSE[粘贴“加入”转身为FALSE]
# there is a click at the junction between the two waves[有两个波之间的交界处是一个点击]
pastew(a, b, f=400, plot=TRUE)
# that can be removed by setting 'join' to TRUE[通过设置,可以删除“加入”为TRUE]
pastew(a, b, f=400, join=TRUE, plot=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|