NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma). More...
#include <random.h>
Classes | |
| struct | Parameters |
Public Types | |
| typedef normal_distribution< T > ::type | DistributionType |
| typedef boost::mt19937 | EngineType |
Public Member Functions | |
| const Parameters & | getParameters () |
| NormalGenerator (T mean=0, T sigma=1, pcl::uint32_t seed=-1) | |
| NormalGenerator (const Parameters ¶meters) | |
| T | run () |
| void | setParameters (T mean, T sigma, pcl::uint32_t seed=-1) |
| void | setParameters (const Parameters ¶meters) |
| void | setSeed (pcl::uint32_t seed) |
Public Attributes | |
| DistributionType | distribution_ |
| normal distribution | |
| boost::variate_generator < EngineType &, DistributionType > | generator_ |
| generator of random number from a normal distribution | |
| Parameters | parameters_ |
| parameters | |
| EngineType | rng_ |
| random number generator | |
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.
| pcl::common::NormalGenerator< T >::NormalGenerator | ( | const Parameters & | parameters | ) |
Constructor
| parameters | normal distribution parameters and seed |
Definition at line 133 of file random.hpp.
| const Parameters& pcl::common::NormalGenerator< T >::getParameters | ( | ) | [inline] |
| T pcl::common::NormalGenerator< T >::run | ( | ) | [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.
| 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 >::setSeed | ( | pcl::uint32_t | seed | ) |
| DistributionType pcl::common::NormalGenerator< T >::distribution_ |
| boost::variate_generator<EngineType&, DistributionType > pcl::common::NormalGenerator< T >::generator_ |
| Parameters pcl::common::NormalGenerator< T >::parameters_ |
| EngineType pcl::common::NormalGenerator< T >::rng_ |