56 using type = std::uniform_int_distribution<T>;
62 using type = std::uniform_real_distribution<T>;
68 using type = std::normal_distribution<T>;
132 run () {
return (distribution_ (rng_)); }
137 Parameters parameters_;
141 DistributionType distribution_;
217 #include <pcl/common/impl/random.hpp> Parameters parameters_
parameters
Parameters(T _mean=0, T _sigma=1, std::uint32_t _seed=1)
const Parameters & getParameters()
std::normal_distribution< T > type
std::mt19937 rng_
random number generator
void setSeed(std::uint32_t seed)
Change seed value.
void setParameters(T mean, T sigma, std::uint32_t seed=-1)
Set the normal number generator parameters.
DistributionType distribution_
normal distribution
NormalGenerator(T mean=0, T sigma=1, std::uint32_t seed=-1)
Constructor.
NormalGenerator class generates a random number from a normal distribution specified by (mean...
Defines all the PCL and non-PCL macros used.
typename normal_distribution< T >::type DistributionType