genray(VGAM)
genray()所属R语言包:VGAM
The Generalized Rayleigh Distribution
广义瑞利分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the generalized Rayleigh distribution.
密度,分布函数,广义瑞利分布的分位数函数随机生成。
用法----------Usage----------
dgenray(x, shape, scale = 1, log = FALSE)
pgenray(q, shape, scale = 1)
qgenray(p, shape, scale = 1)
rgenray(n, shape, scale = 1)
参数----------Arguments----------
参数:x, q
vector of quantiles.
向量的位数。
参数:p
vector of probabilities.
向量的概率。
参数:n
number of observations. If length(n) > 1 then the length is taken to be the number required.
若干意见。如果length(n) > 1的长度是所需的数量。
参数:scale, shape
positive scale and shape parameters.
积极的尺度和形状参数。
参数:log
Logical. If log = TRUE then the logarithm of the density is returned.
逻辑。如果log = TRUE然后返回的密度的对数。
Details
详细信息----------Details----------
See genrayleigh, the VGAM family function for estimating the parameters, for the formula of the probability density function and other details.
genrayleigh,的VGAM的家庭功能的参数估计,公式的概率密度函数和其他细节。
值----------Value----------
dgenray gives the density, pgenray gives the distribution function, qgenray gives the quantile function, and rgenray generates random deviates.
dgenray给出了密度,pgenray给出了分布函数,qgenray给出了分位数的功能,和rgenray随机产生的偏离。
注意----------Note----------
We define scale as the reciprocal of the scale parameter used by Kundu and Raqab (2005).
我们定义“scale的尺度参数所使用的昆都和Raqab的(2005年)的倒数。
(作者)----------Author(s)----------
J. G. Lauder and T. W. Yee
参见----------See Also----------
genrayleigh, rayleigh.
genrayleigh,rayleigh。
实例----------Examples----------
## Not run: [#不运行:]
shape = 0.5; scale = 1; nn = 501
x = seq(-0.10, 3.0, len = nn)
plot(x, dgenray(x, shape, scale), type = "l", las = 1, ylim = c(0, 1.2),
ylab = paste("[dp]genray(shape = ", shape, ", scale = ", scale, ")"),
col = "blue", cex.main = 0.8,
main = "Blue is density, orange is cumulative distribution function",
sub = "Purple lines are the 10,20,...,90 percentiles")
lines(x, pgenray(x, shape, scale), col = "orange")
probs = seq(0.1, 0.9, by = 0.1)
Q = qgenray(probs, shape, scale)
lines(Q, dgenray(Q, shape, scale), col = "purple", lty = 3, type = "h")
lines(Q, pgenray(Q, shape, scale), col = "purple", lty = 3, type = "h")
abline(h = probs, col = "purple", lty = 3)
max(abs(pgenray(Q, shape, scale) - probs)) # Should be 0[应为0]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|