Point Cloud Library (PCL)
1.11.0
|
Go to the documentation of this file.
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>
Defines all the PCL and non-PCL macros used.
void setSeed(std::uint32_t seed)
Change seed value.
NormalGenerator(T mean=0, T sigma=1, std::uint32_t seed=-1)
Constructor.
void setParameters(T mean, T sigma, std::uint32_t seed=-1)
Set the normal number generator parameters.
std::mt19937 rng_
random number generator
DistributionType distribution_
normal distribution
typename normal_distribution< T >::type DistributionType
NormalGenerator class generates a random number from a normal distribution specified by (mean,...
Parameters parameters_
parameters
std::normal_distribution< T > type
Parameters(T _mean=0, T _sigma=1, std::uint32_t _seed=1)
const Parameters & getParameters()