58 #include <visp/vpConfig.h>
96 normalizer = 2147484721.0 ;
100 vpUniRand(
const long seed = 0):x((seed)? seed : 739806647)
144 const long seed = 0):mean(_mean), sigma(sqrtvariance)
156 inline void setSigmaMean(
const double _s,
const double _m) {mean=_m;sigma=_s;}
163 inline double operator()() {
return sigma*gaussianDraw()+mean;}
166 double gaussianDraw();
vpGaussRand(const double sqrtvariance, const double _mean, const long seed=0)
void seed(const long seed)
vpUniRand(const long seed=0)
Class for generating random number with normal probability density.
void setSigmaMean(const double _s, const double _m)
Class for generating random numbers with uniform probability density.