56class NormalDistribution
60 typedef UniformRandomNumberGenerator base_type;
62 explicit NormalDistribution(base_type& rng,
Real mean = 0.0,
Real sigma = 1.0)
71 NormalDistribution(
const NormalDistribution& other)
74 , _sigma(other._sigma)
91 const double pi = 3.14159265358979323846;
93 return _cached_rho * (_valid ? cos(2 * pi * _r1) : sin(2 * pi * _r1)) * _sigma + _mean;
99 const Real _mean, _sigma;
102 Real _cached_rho = 0.0;