|
Point Cloud Library (PCL)
1.15.1-dev
|
NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma). More...
#include <pcl/common/random.h>
Collaboration diagram for pcl::common::NormalGenerator< T >:Classes | |
| struct | Parameters |
Public Types | |
| using | DistributionType = typename normal_distribution< T >::type |
Public Member Functions | |
| NormalGenerator (T mean=0, T sigma=1, std::uint32_t seed=-1) | |
| Constructor. More... | |
| NormalGenerator (const Parameters ¶meters) | |
| Constructor. More... | |
| void | setSeed (std::uint32_t seed) |
| Change seed value. More... | |
| void | setParameters (T mean, T sigma, std::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... | |
| std::mt19937 | rng_ |
| random number generator More... | |
| DistributionType | distribution_ |
| normal distribution More... | |
NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma).
| using pcl::common::NormalGenerator< T >::DistributionType = typename normal_distribution<T>::type |
| pcl::common::NormalGenerator< T >::NormalGenerator | ( | T | mean = 0, |
| T | sigma = 1, |
||
| std::uint32_t | seed = -1 |
||
| ) |
Constructor.
| [in] | mean | normal mean |
| [in] | sigma | normal variation |
| [in] | seed | seeding value |
Definition at line 113 of file random.hpp.
| pcl::common::NormalGenerator< T >::NormalGenerator | ( | const Parameters & | parameters | ) |
Constructor.
| parameters | normal distribution parameters and seed |
Definition at line 123 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 200 of file random.h.
References pcl::common::NormalGenerator< T >::parameters_.
|
inline |
Definition at line 204 of file random.h.
References pcl::common::NormalGenerator< T >::distribution_, and pcl::common::NormalGenerator< T >::rng_.
| void pcl::common::NormalGenerator< T >::setParameters | ( | const Parameters & | parameters | ) |
Set generator parameters.
| parameters | normal distribution parameters and seed |
Definition at line 158 of file random.hpp.
| void pcl::common::NormalGenerator< T >::setParameters | ( | T | mean, |
| T | sigma, | ||
| std::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 144 of file random.hpp.
| void pcl::common::NormalGenerator< T >::setSeed | ( | std::uint32_t | seed | ) |
| DistributionType pcl::common::NormalGenerator< T >::distribution_ |
normal distribution
Definition at line 212 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::run().
| Parameters pcl::common::NormalGenerator< T >::parameters_ |
parameters
Definition at line 208 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::getParameters(), and pcl::common::NormalGenerator< T >::NormalGenerator().
| std::mt19937 pcl::common::NormalGenerator< T >::rng_ |
random number generator
Definition at line 210 of file random.h.
Referenced by pcl::common::NormalGenerator< T >::NormalGenerator(), and pcl::common::NormalGenerator< T >::run().