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