56 #include <visp/vpConfig.h>
84 : a(16807), m(2147483647), q(127773), r(2836), normalizer(2147484721.0), x((seed)? seed : 739806647)
172 double gaussianDraw();
188 vpGaussRand(
const double sigma_val,
const double mean_val,
const long noise_seed = 0)
189 :
vpUniRand(noise_seed), mean(mean_val), sigma(sigma_val) {}
198 this->mean = mean_val;
199 this->sigma = sigma_val;
207 void seed(
const long seed_val) {
215 return sigma*gaussianDraw()+mean;
void setSigmaMean(const double sigma_val, const double mean_val)
void seed(const long seed_val)
vpUniRand(const long seed=0)
vpGaussRand(const double sigma_val, const double mean_val, const long noise_seed=0)
Class for generating random number with normal probability density.
Class for generating random numbers with uniform probability density.