首页> 美国卫生研究院文献>other >A modified ziggurat algorithm for generating exponentially- and normally-distributed pseudorandom numbers
【2h】

A modified ziggurat algorithm for generating exponentially- and normally-distributed pseudorandom numbers

机译:一种改进的ziggurat算法用于生成指数分布和正态分布的伪随机数

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

The Ziggurat Algorithm is a very fast rejection sampling method for generating PseudoRandom Numbers (PRNs) from statistical distributions. In the algorithm, rectangular sampling domains are layered on top of each other (resembling a ziggurat) to encapsulate the desired probability density function. Random values within these layers are sampled and then returned if they lie beneath the graph of the probability density function. Here, we present an implementation where ziggurat layers reside completely beneath the probability density function, thereby eliminating the need for any rejection test within the ziggurat layers. In the new algorithm, small overhanging segments of probability density remain to the right of each ziggurat layer, which can be efficiently sampled with triangularly-shaped sampling domains. Median runtimes of the new algorithm for exponential and normal variates is reduced to 58% and 53% respectively (collective range: 41–93%). An accessible C library, along with extensions into Python and MATLAB/Octave are provided.
机译:Ziggurat算法是一种非常快速的拒绝采样方法,用于从统计分布中生成伪随机数(PRN)。在该算法中,矩形采样域彼此叠加(类似于锯齿形),以封装所需的概率密度函数。对这些层中的随机值进行采样,如果它们位于概率密度函数图的下方,则将其返回。在这里,我们提出一种实现,其中Ziggurat层完全位于概率密度函数之下,从而消除了在Ziggurat层内进行任何拒绝测试的需要。在新算法中,概率密度的小突出部分保留在每个Ziggurat层的右侧,可以使用三角形的采样域对其进行有效采样。指数变量和正态变量的新算法的中值运行时间分别减少到58%和53%(总范围:41–93%)。提供了可访问的C库,以及对Python和MATLAB / Octave的扩展。

著录项

  • 期刊名称 other
  • 作者

    Christopher D McFarland;

  • 作者单位
  • 年(卷),期 -1(86),7
  • 年度 -1
  • 页码 1281–1294
  • 总页数 22
  • 原文格式 PDF
  • 正文语种
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号