Boost logo

Boost Users :

Subject: [Boost-users] Normal distribution
From: Laurent GIORELLO (lsgiorello_at_[hidden])
Date: 2008-12-13 17:47:22


Hi all,
 
I've read the implementation for the normal distribution and I've seen people wanted Box-Muller algorithm. Instead, I suggest Marsaglia method.
Instead of using cos and sin, we use a square soot. The advantage is that we already use the square root for the log. Then it's really faster.
Anybody for this ?
 
Laurent



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net