Point Cloud Library (PCL)
1.14.1-dev
|
UniformGenerator class generates a random number from range [min, max] at each run picked according to a uniform distribution i.e each number within [min, max] has almost the same probability of being drawn. More...
#include <pcl/common/random.h>
Classes | |
struct | Parameters |
Public Member Functions | |
UniformGenerator (T min=0, T max=1, std::uint32_t seed=-1) | |
Constructor. More... | |
UniformGenerator (const Parameters ¶meters) | |
Constructor. More... | |
void | setSeed (std::uint32_t seed) |
Change seed value. More... | |
void | setParameters (T min, T max, std::uint32_t seed=-1) |
Set the uniform number generator parameters. More... | |
void | setParameters (const Parameters ¶meters) |
Set generator parameters. More... | |
const Parameters & | getParameters () |
T | run () |
UniformGenerator class generates a random number from range [min, max] at each run picked according to a uniform distribution i.e each number within [min, max] has almost the same probability of being drawn.
pcl::common::UniformGenerator< T >::UniformGenerator | ( | T | min = 0 , |
T | max = 1 , |
||
std::uint32_t | seed = -1 |
||
) |
Constructor.
min | included lower bound |
max | included higher bound |
seed | seeding value |
Definition at line 53 of file random.hpp.
pcl::common::UniformGenerator< T >::UniformGenerator | ( | const Parameters & | parameters | ) |
Constructor.
parameters | uniform distribution parameters and generator seed |
Definition at line 63 of file random.hpp.
References pcl::common::UniformGenerator< T >::Parameters::seed.
|
inline |
|
inline |
Definition at line 132 of file random.h.
Referenced by pcl::recognition::ModelLibrary::Model::Model().
void pcl::common::UniformGenerator< T >::setParameters | ( | const Parameters & | parameters | ) |
Set generator parameters.
parameters | uniform distribution parameters and generator seed |
Definition at line 101 of file random.hpp.
void pcl::common::UniformGenerator< T >::setParameters | ( | T | min, |
T | max, | ||
std::uint32_t | seed = -1 |
||
) |
Set the uniform number generator parameters.
[in] | min | minimum allowed value |
[in] | max | maximum allowed value |
[in] | seed | random number generator seed (applied if != -1) |
Definition at line 84 of file random.hpp.
Referenced by pcl::recognition::ModelLibrary::Model::Model().
void pcl::common::UniformGenerator< T >::setSeed | ( | std::uint32_t | seed | ) |
Change seed value.
[in] | seed | new generator seed value |
Definition at line 73 of file random.hpp.