sliding.meansd(Ringo)
sliding.meansd()所属R语言包:Ringo
Compute mean and standard deviation of scores in a sliding window
计算的意思,并在滑动窗口的分数的标准差
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This functions is used to slide a window of specified size over scores at given positions. Computed is the mean and standard deviation over the scores in the window.
这个功能是用来指定分数在给定的位置,大小的滑动窗口。计算是在窗口的得分超过平均数和标准差。
用法----------Usage----------
sliding.meansd(positions, scores, half.width)
参数----------Arguments----------
参数:positions
numeric; sorted vector of (genomic) positions of scores
数字;排序向量(基因组)分数的位置
参数:scores
numeric; scores to be smoothed associated to the positions
平滑的数字;分数positions
参数:half.width
numeric, half the window size of the sliding window
数字,滑动窗口的窗口大小的一半
值----------Value----------
Matrix with three columns:
三列矩阵:
参数:mean
means over scores in running window centered at the positions that were specified in argument positions.
意味着超过在参数positions指定位置集中在运行窗口的分数。
参数:sd
standard deviations over scores in running window centered at the positions that were specified in argument positions.
对在参数positions在指定位置为中心的运行窗口中的分数的标准偏差。
参数:count
number of points that were considered for computing the mean and standard deviation at each position
点的数量,在每个位置的计算均值和标准差
作者(S)----------Author(s)----------
Joern Toedling and Oleg Sklyar
参见----------See Also----------
sliding.quantile
sliding.quantile
举例----------Examples----------
set.seed(123)
sampleSize <- 10
ap <- cumsum(1+round(runif(sampleSize)*10))
as <- c(rnorm(floor(sampleSize/3)),
rnorm(ceiling(sampleSize/3),mean=1.5),
rnorm(floor(sampleSize/3)))
sliding.meansd(ap, as, 20)
ap
mean(as[1:3])
sd(as[1:3])
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|