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

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

[复制链接]
发表于 2012-9-30 12:03:30 | 显示全部楼层 |阅读模式
fitSampleParameters(sound)
fitSampleParameters()所属R语言包:sound

                                        Adjust Parameters of Two Sample Objects.
                                         调整参数的两个示例对象。

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

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

Adjust the parameters sampling rate, channels and bits/sample of two Sample objects.
调整的参数的采样率,通道位和/样本的两个Sample对象。


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





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

参数:s1,s2
a Sample object, or strings giving the name of a wav file.
一个Sample对象或字符串给一个wav文件的名称。


Details

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

The commands rate, channels and bits are used to transform copies of s1 and s2 to samples with the same parameters rate, channels and bits. Always the parameter with the better quality is chosen for the returned samples, that is the higher sampling rate, the larger number of channels and the larger number of bits per sample.
的命令rate,channels和bits用于将副本s1和s2的样品具有相同的参数率,渠道和位。总是与更好的质量的参数的返回的样品被选择,也就是较高的采样率,较大的信道数和较大的每个样本的比特数。


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

a list containing the two transformed Samples as components.
一个列表,其中包含两个转化样品组件。


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

This routine is called before certain commands such as sum.Sample or appendSample are applied to Sample objects with different parameters.
这个例程被调用之前某些命令,如sum.Sample或appendSampleSample对象使用不同的参数。


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


Matthias Heymann



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

rate, channels, bits
rate,channels,bits


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


s1 <- Sine(440,1,rate=22050,channels=1,bits=16)
s2 <- Sawtooth(440,1,rate=44100,channels=2,bits=8)
play(s1)
play(s2)
l  <- fitSampleParameters(s1,s2)
t1 <- l[[1]]
t2 <- l[[2]]
print(t1)
print(t2)  # both samples have the same parameters now[两个样品现在具有相同的参数]
play(t1)
play(t2)   # none of the samples sounds different now,[没有样本的声音现在不同了,]
           # since only parameters with higher quality were chosen[具有更高的质量,因为只有参数选择]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 04:59 , Processed in 0.023102 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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