movingAverageByCol(edgeR)
movingAverageByCol()所属R语言包:edgeR
Moving Average Smoother of Matrix Columns
移动平均线平滑的矩阵的列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Apply a moving average smoother to the columns of a matrix.
应用移动平均平滑矩阵列。
用法----------Usage----------
movingAverageByCol(x, width=5, full.length=TRUE)
参数----------Arguments----------
参数:x
numeric matrix
数字矩阵
参数:width
integer, width of window of rows to be averaged
整数,窗宽行的平均值
参数:full.length
logical value, should output have same number of rows as input?
逻辑值,应该输出作为输入相同的行数?
Details
详情----------Details----------
If full.length=TRUE, narrower windows are used at the start and end of each column to make a column of the same length as input. If FALSE, all values are averager of width input values, so the number of rows is less than input.
如果full.length=TRUE,窄的窗户被用来在开始和结束每列作为输入相同长度的列。如果FALSE,所有的值width输入值的平均器,这样的行数小于输入。
值----------Value----------
Numeric matrix containing smoothed values. If full.length=TRUE, of same dimension as x. If full.length=FALSE, has width-1 fewer rows than x.
数字矩阵包含平滑值。如果full.length=TRUE,x同一维度。如果full.length=FALSE,width-1比x少行。
作者(S)----------Author(s)----------
Gordon Smyth
举例----------Examples----------
x <- matrix(rpois(20,lambda=5),10,2)
movingAverageByCol(x,3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|