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

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

[复制链接]
发表于 2012-2-26 00:31:02 | 显示全部楼层 |阅读模式
localMaximum(MassSpecWavelet)
localMaximum()所属R语言包:MassSpecWavelet

                                        Identify local maximum within a slide window.
                                         幻灯片窗口内确定当地最高。

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

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

Find local maximum by transform the vector as matrix, then get the the maximum of each column. This operation is performed twice with vecctor shifted half of the winSize.
找到当地最大转化为矩阵向量,然后每列的最大。执行此操作两次与移vecctor一半winSize。


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


localMaximum(x, winSize = 5)



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

参数:x
a vector represents a signal profile
一个向量代表一个信号简介


参数:winSize
the slide window size, 5 by default.
滑动窗口大小,默认为5。


Details

详情----------Details----------

Instead of find the local maximum by a slide window, which slide all possible positions, we find local maximum by transform the vector as matrix, then get the the maximum of each column. This operation is performed twice with vecctor shifted half of the winSize. The main purpose of this is to increase the efficiency of the algorithm.
而是找到当地最大的幻灯片窗口,其中滑动所有可能的位置,我们找到当地最大转化为矩阵向量,然后每列的最大。执行此操作两次与移vecctor一半winSize。这样做的主要目的是为了提高算法的效率。


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

Return a vector with the same length of the input x. The position of local maximum is set as 1, 0 else where.
返回与输入x相同长度的向量。当地最大的位置设置为1,0其他地方。


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


Pan Du



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

getLocalMaximumCWT
getLocalMaximumCWT


举例----------Examples----------


x <- rnorm(200)
lmax <- localMaximum(x, 5)
maxInd <- which(lmax > 0)
plot(x, type='l')
points(maxInd, x[maxInd], col='red')

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-4 01:16 , Processed in 0.026154 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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