Runuran.special.generators(Runuran)
Runuran.special.generators()所属R语言包:Runuran
Generators for distributions based on methods from the UNU.RAN library
根据方法从UNU.RAN库的分布发电机
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generators for particular distributions. Their syntax is similar to the corresponding R built-in functions.
发电机为特定的分布。它们的语法是类似于内置函数相应的R。
Details
详细信息----------Details----------
Runuran provides an interface to the UNU.RAN library for universal non-uniform random number generators. This is a very flexible and powerful collection of sampling routines, where the user first has to specify the target distribution and then has to choose an appropriate sampling method. However, we found that this approach is a little bit confusing for the beginner.
Runuran普遍的非均匀分布的随机数生成器提供了一个接口的UNU.RAN库。采样例程,用户首先要指定目标分配,这是一个非常灵活和强大的集合,然后选择一个合适的抽样方法。然而,我们发现,这种做法是有点令人困惑的初学者。
Thus we have prepared easy-to-use sampling functions for standard distributions to facilitate the use of the package. All these functions share a similar syntax and naming scheme (only u is prefixed) with their analogous R built-in generating functions (if these exist) but have optional domain arguments lb and ub, i.e., these calls also allow to draw samples from truncated distributions:
因此,我们已经准备好了易于使用的标准分布的采样功能,以方便使用的包装。所有这些功能都有着相似的语法和命名方案(仅u的前缀)与他们类似的ŕ内置的生成函数(如果有的话),但有可选域的观点lb和ub ,也就是说,这些检测也允许抽取样品从截断的分布:
ur...(n, distribution parameters, lb , ub)
ur...(n, distribution parameters, lb , ub)
These functions also show the interested user how we used the more powerful functions. We recommend to directly use these more flexible functions. Then one has faster marginal generation times and one may choose the best generation method for one's application.
这些功能也有兴趣的用户,我们使用了更强大的功能。我们建议直接使用这些更灵活的功能。一个更快的边缘产生时间,可以选择最好的生成方法的应用。
Currently generators for the following distributions are implemented.
目前发电机以下发行的贯彻落实。
Continuous Univariate Distributions (24):
连续单变量分布(24):
Discrete Distributions (6):
离散分布(6):
(作者)----------Author(s)----------
Josef Leydold and Wolfgang H\"ormann
<a href="mailto:unuran@statmath.wu.ac.at">unuran@statmath.wu.ac.at</a>.
参见----------See Also----------
Runuran-package, Runuran.distributions.
Runuran-package,Runuran.distributions。
实例----------Examples----------
## draw a sample of size 100 from a[从抽取样本大小为100]
## gamma distribution with shape parameter 5[#伽玛分布的形状参数5]
x <- urgamma(n=100, shape=5)
## draw a sample of size 100 from a[从抽取样本大小为100]
## half normal distribution[#半正态分布]
x <- urnorm(n=100, lb=0, ub=Inf)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|