25#ifndef quantlib_central_limit_gaussian_rng_h
26#define quantlib_central_limit_gaussian_rng_h
57 : uniformGenerator_(uniformGenerator) {}
62 Real gaussPoint = -6.0, gaussWeight = 1.0;
64 typename RNG::sample_type sample = uniformGenerator_.next();
65 gaussPoint += sample.
value;
66 gaussWeight *= sample.weight;
68 return {gaussPoint, gaussWeight};
Gaussian random number generator.
sample_type next() const
returns a sample from a Gaussian distribution
CLGaussianRng(const RNG &uniformGenerator)
Sample< Real > sample_type
QL_INTEGER Integer
integer number