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

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

[复制链接]
发表于 2012-2-25 22:32:03 | 显示全部楼层 |阅读模式
runstat(IRanges)
runstat()所属R语言包:IRanges

                                        Fixed width running window summaries across vector-like objects
                                         固定宽度的运行跨媒介状物体的窗口摘要

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

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

The runsum, runmean, runwtsum, runq functions calculate the sum, mean, weighted sum, and order statistics for fixed width running windows.
runsum,runmean,runwtsum,runq功能运行Windows的固定宽度的总和,平均,加权总和,为了统计计算。


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


runsum(x, k, endrule = c("drop", "constant"))
runmean(x, k, endrule = c("drop", "constant"))
runwtsum(x, k, wt, endrule = c("drop", "constant"))
runq(x, k, i, endrule = c("drop", "constant"))



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

参数:x
The data object.  
数据对象。


参数:k
An integer indicating the fixed width of the running window. Must be odd when endrule == "constant".  
一个整数,表示对正在运行的窗口的固定宽度。必须是奇数时,endrule == "constant"。


参数:wt
A numeric vector of length k that provides the weights to use.  
一个数值向量长度k提供使用权。


参数:i
An integer indicating which order statistic to calculate.  
一个整数,指示的次序统计量的计算。


参数:endrule
A character string indicating how the values at the beginning and the end (of the data) should be treated.     
说明如何在开头和结尾(数据)的值应被视为一个字符串。

"drop"do not extend the running statistics to be the same length as the underlying vectors;  
"drop"不延长运行统计是相同长度的基本向量;

"constant"copies running statistic to the first values and analogously for the last ones making the smoothed ends constant;     
"constant"复制运行的第一个值的统计和比照去年的平滑结束恒定;


Details

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

The runsum, runmean, runwtsum, and runq functions provide efficient methods for calculating the specified numeric summary by performing the looping in compiled code.
runsum,runmean,runwtsum,runq功能提供有效的方法计算,在编译的代码循环执行指定的数字总结。


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

An object of the same class as x.
为x同一类的对象。


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


P. Aboyoun



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

runmed, Rle-class, RleList-class
runmed,RLE一流的,一流的RleList


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


  x <- Rle(1:10, 1:10)
  runsum(x, k = 3)
  runsum(x, k = 3, endrule = "constant")
  runmean(x, k = 3)
  runwtsum(x, k = 3, wt = c(0.25, 0.5, 0.25))
  runq(x, k = 5, i = 3, endrule = "constant")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 10:57 , Processed in 0.022864 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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