inverse.cdf.weights(smcUtils)
inverse.cdf.weights()所属R语言包:smcUtils
Compute weights by inverse cdf
逆累积分布函数的计算权重
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Indices given by the inverse cdf method
指数的逆累积分布函数法
用法----------Usage----------
inverse.cdf.weights(weights, uniforms = runif(length(weights)))
参数----------Arguments----------
参数:weights
a vector of normalized probabilities
一个向量的归一化的概率
参数:uniforms
a vector of uniform (0,1) random variables
均匀的矢量(0,1)随机变量
Details
详细信息----------Details----------
For each uniform u, returns the index j such that "cusum(weights)[j-1] < u < cusum(weights)[j]".
对于每个均匀ü,返回索引j,这样“的CUSUM(权重)[J-1] <U <CUSUM(重量)[J]。
(作者)----------Author(s)----------
Jarad Niemi
参见----------See Also----------
resampling
resampling
实例----------Examples----------
ws = renormalize.weights(runif(6))
inverse.cdf.weights(ws)
inverse.cdf.weights(ws,runif(9,0,0.2))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|