00001 #include <pcl/tracking/tracking.h> 00002 00003 double 00004 pcl::tracking::sampleNormal (double mean, double sigma) 00005 { 00006 using namespace boost; 00007 static mt19937 rng(static_cast<unsigned> (std::time (0))); 00008 00009 normal_distribution<double> norm_dist (mean, sqrt (sigma)); 00010 00011 variate_generator<mt19937&, normal_distribution<double> > 00012 normal_sampler (rng, norm_dist); 00013 00014 return normal_sampler (); 00015 }