57 }
while (r2 > 1.0 || r2 == 0.0);
58 return mean + sigma * y * std::sqrt(-2.0 * log(r2) / r2);
66 return lowerBndr + ((double) std::rand() / (RAND_MAX + 1.0)) * (upperBndr - lowerBndr);
74 seed_rand(static_cast<unsigned int>(std::time(NULL)));
static double uniform_rand(double lowerBndr, double upperBndr)
static void seed_rand(unsigned int seed)
double uniform_rand(double lowerBndr, double upperBndr)
#define G2O_TUTORIAL_SLAM2D_API
static double gauss_rand(double mean, double sigma)