39 #ifndef vpGaussRand_hh 40 #define vpGaussRand_hh 42 #include <visp3/core/vpConfig.h> 43 #include <visp3/core/vpUniRand.h> 125 double gaussianDraw();
140 vpGaussRand(
const double sigma_val,
const double mean_val,
const long noise_seed = 0)
141 :
vpUniRand(noise_seed), mean(mean_val), sigma(sigma_val)
153 this->mean = mean_val;
154 this->sigma = sigma_val;
162 void seed(
const long seed_val) { x = seed_val; }
167 double operator()() {
return sigma * gaussianDraw() + mean; }
void setSigmaMean(const double sigma_val, const double mean_val)
void seed(const long seed_val)
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.