|
Point Cloud Library (PCL)
1.8.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 |
|
inline |
| 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.
References pcl::common::NormalGenerator< T >::distribution_, pcl::common::NormalGenerator< T >::generator_, pcl::common::NormalGenerator< T >::Parameters::mean, pcl::common::NormalGenerator< T >::parameters_, pcl::common::NormalGenerator< T >::rng_, pcl::common::NormalGenerator< T >::Parameters::seed, and pcl::common::NormalGenerator< T >::Parameters::sigma.
| 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.
References pcl::common::NormalGenerator< T >::distribution_, pcl::common::NormalGenerator< T >::generator_, pcl::common::NormalGenerator< T >::Parameters::mean, pcl::common::NormalGenerator< T >::parameters_, pcl::common::NormalGenerator< T >::rng_, pcl::common::NormalGenerator< T >::Parameters::seed, and pcl::common::NormalGenerator< T >::Parameters::sigma.
| void pcl::common::NormalGenerator< T >::setSeed | ( | pcl::uint32_t | seed | ) |
Change seed value.
| [in] | seed | new seed value |
Definition at line 144 of file random.hpp.
References pcl::common::NormalGenerator< T >::parameters_, pcl::common::NormalGenerator< T >::rng_, and pcl::common::NormalGenerator< T >::Parameters::seed.
| DistributionType pcl::common::NormalGenerator< T >::distribution_ |
normal distribution
Definition at line 222 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::setParameters().
| 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 >::setParameters().
| Parameters pcl::common::NormalGenerator< T >::parameters_ |
parameters
Definition at line 220 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::NormalGenerator(), pcl::common::NormalGenerator< T >::setParameters(), and pcl::common::NormalGenerator< T >::setSeed().
| EngineType pcl::common::NormalGenerator< T >::rng_ |
random number generator
Definition at line 224 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::NormalGenerator(), pcl::common::NormalGenerator< T >::setParameters(), and pcl::common::NormalGenerator< T >::setSeed().