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>
Iterator class for point clouds with or without given indices.
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.
const Parameters & getParameters()
void setSeed(std::uint32_t seed)
Change seed value.
typename normal_distribution< T >::type DistributionType
std::mt19937 rng_
random number generator
Parameters parameters_
parameters
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