37 #ifndef JSK_RECOGNITION_UTILS_RANDOM_UTIL_H_ 38 #define JSK_RECOGNITION_UTILS_RANDOM_UTIL_H_ 39 #include <boost/random.hpp> 48 double randomGaussian(
double mean,
double var, boost::mt19937& gen);
54 double randomUniform(
double min,
double max, boost::mt19937& gen);
double randomGaussian(double mean, double var, boost::mt19937 &gen)
Return a random value according to gaussian distribution. If variance is zero, it just returns mean...
double randomUniform(double min, double max, boost::mt19937 &gen)
Return a random value according to uniform distribution.