转换的均匀分布正态分布 [英] Converting a Uniform Distribution to a Normal Distribution
本文介绍了转换的均匀分布正态分布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能转换成一个均匀分布(大多数随机数发生器产生,如0.0到1.0之间),成正态分布?如果我想有一个均值和我选择的标准偏差?
How can I convert a uniform distribution (as most random number generators produce, e.g. between 0.0 and 1.0) into a normal distribution? What if I want a mean and standard deviation of my choosing?
推荐答案
在通灵塔算法是pretty的高效对于这一点,虽然箱穆勒变换是更容易从头开始实施(而不是疯狂的慢)。
The Ziggurat algorithm is pretty efficient for this, although the Box-Muller transform is easier to implement from scratch (and not crazy slow).
这篇关于转换的均匀分布正态分布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文