Point Cloud Library (PCL)
1.9.1
|
NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma). More...
#include <pcl/common/random.h>
Classes | |
struct | Parameters |
Public Types | |
typedef boost::mt19937 | EngineType |
typedef normal_distribution< T >::type | DistributionType |
Public Member Functions | |
NormalGenerator (T mean=0, T sigma=1, pcl::uint32_t seed=-1) | |
Constructor. More... | |
NormalGenerator (const Parameters ¶meters) | |
Constructor. More... | |
void | setSeed (pcl::uint32_t seed) |
Change seed value. More... | |
void | setParameters (T mean, T sigma, pcl::uint32_t seed=-1) |
Set the normal number generator parameters. More... | |
void | setParameters (const Parameters ¶meters) |
Set generator parameters. More... | |
const Parameters & | getParameters () |
T | run () |
Public Attributes | |
Parameters | parameters_ |
parameters More... | |
DistributionType | distribution_ |
normal distribution More... | |
EngineType | rng_ |
random number generator More... | |
boost::variate_generator< EngineType &, DistributionType > | generator_ |
generator of random number from a normal distribution More... | |
NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma).
typedef normal_distribution<T>::type pcl::common::NormalGenerator< T >::DistributionType |
typedef boost::mt19937 pcl::common::NormalGenerator< T >::EngineType |
pcl::common::NormalGenerator< T >::NormalGenerator | ( | T | mean = 0 , |
T | sigma = 1 , |
||
pcl::uint32_t | seed = -1 |
||
) |
Constructor.
[in] | mean | normal mean |
[in] | sigma | normal variation |
[in] | seed | seeding value |
Definition at line 121 of file random.hpp.
References pcl::common::NormalGenerator< T >::parameters_, pcl::common::NormalGenerator< T >::rng_, and pcl::common::NormalGenerator< T >::Parameters::seed.
pcl::common::NormalGenerator< T >::NormalGenerator | ( | const Parameters & | parameters | ) |
Constructor.
parameters | normal distribution parameters and seed |
Definition at line 133 of file random.hpp.
References pcl::common::NormalGenerator< T >::parameters_, pcl::common::NormalGenerator< T >::rng_, and pcl::common::NormalGenerator< T >::Parameters::seed.
|
inline |
Definition at line 211 of file random.h.
References pcl::common::NormalGenerator< T >::parameters_.
|
inline |
Definition at line 215 of file random.h.
References pcl::common::NormalGenerator< T >::generator_.
void pcl::common::NormalGenerator< T >::setParameters | ( | const Parameters & | parameters | ) |
Set generator parameters.
parameters | normal distribution parameters and seed |
Definition at line 174 of file random.hpp.
void pcl::common::NormalGenerator< T >::setParameters | ( | T | mean, |
T | sigma, | ||
pcl::uint32_t | seed = -1 |
||
) |
Set the normal number generator parameters.
[in] | mean | mean of the normal distribution |
[in] | sigma | standard variation of the normal distribution |
[in] | seed | random number generator seed (applied if != -1) |
Definition at line 155 of file random.hpp.
void pcl::common::NormalGenerator< T >::setSeed | ( | pcl::uint32_t | seed | ) |
DistributionType pcl::common::NormalGenerator< T >::distribution_ |
boost::variate_generator<EngineType&, DistributionType > pcl::common::NormalGenerator< T >::generator_ |
generator of random number from a normal distribution
Definition at line 226 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::run().
Parameters pcl::common::NormalGenerator< T >::parameters_ |
parameters
Definition at line 220 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::getParameters(), and pcl::common::NormalGenerator< T >::NormalGenerator().
EngineType pcl::common::NormalGenerator< T >::rng_ |
random number generator
Definition at line 224 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::NormalGenerator().