Efficient Algorithm for Generating Maxwell Random Variables

被引:2
|
作者
Mohamed, Nader M. A. [1 ]
机构
[1] Atom Energy Author, ETRR 2, Cairo, Egypt
关键词
Rejection-acceptance sampling; Generating Maxwell random variables;
D O I
10.1007/s10955-011-0364-y
中图分类号
O4 [物理学];
学科分类号
0702 ;
摘要
A fast, easily implemented and high efficiency algorithm is derived for sampling from the Maxwell distribution. The algorithm is derived from the rejection-acceptance sampling method using the simple exponential decay function as an envelope function for the Maxwell distribution. The derived algorithm requires less number of random numbers per iteration, consumes less number of random numbers per sample and requires less expensive computation functions than the direct and Johnk's algorithms. The speed of the proposed algorithm is about 1.6 times that of the direct algorithm and is about 1.5 times that of Johnk's algorithm. Since the proposed algorithm for sampling from Maxwell distribution verified high efficiency and speed, Watt random variables can be generated by transforming Maxwell random variables generated by the proposed algorithm. The speed of generating Watt random variables using the proposed algorithm is about 1.1 times that generated from Kalos's algorithm.
引用
收藏
页码:1653 / 1660
页数:8
相关论文
共 50 条