Classes | Public Types | Public Member Functions | Public Attributes
pcl::common::NormalGenerator< T > Class Template Reference

NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma). More...

#include <random.h>

List of all members.

Classes

struct  Parameters

Public Types

typedef normal_distribution< T >
::type 
DistributionType
typedef boost::mt19937 EngineType

Public Member Functions

const ParametersgetParameters ()
 NormalGenerator (T mean=0, T sigma=1, pcl::uint32_t seed=-1)
 NormalGenerator (const Parameters &parameters)
run ()
void setParameters (T mean, T sigma, pcl::uint32_t seed=-1)
void setParameters (const Parameters &parameters)
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

Detailed Description

template<typename T>
class pcl::common::NormalGenerator< T >

NormalGenerator class generates a random number from a normal distribution specified by (mean, sigma).

Author:
Nizar Sallem

Definition at line 161 of file random.h.


Member Typedef Documentation

template<typename T >
typedef normal_distribution<T>::type pcl::common::NormalGenerator< T >::DistributionType

Definition at line 218 of file random.h.

template<typename T >
typedef boost::mt19937 pcl::common::NormalGenerator< T >::EngineType

Definition at line 217 of file random.h.


Constructor & Destructor Documentation

template<typename T >
pcl::common::NormalGenerator< T >::NormalGenerator ( mean = 0,
sigma = 1,
pcl::uint32_t  seed = -1 
)

Constructor

Parameters:
[in]meannormal mean
[in]sigmanormal variation
[in]seedseeding value

Definition at line 121 of file random.hpp.

template<typename T >
pcl::common::NormalGenerator< T >::NormalGenerator ( const Parameters parameters)

Constructor

Parameters:
parametersnormal distribution parameters and seed

Definition at line 133 of file random.hpp.


Member Function Documentation

template<typename T >
const Parameters& pcl::common::NormalGenerator< T >::getParameters ( ) [inline]
Returns:
normal distribution parameters and generator seed

Definition at line 211 of file random.h.

template<typename T >
T pcl::common::NormalGenerator< T >::run ( ) [inline]
Returns:
a randomly generated number in the normal distribution (mean, sigma)

Definition at line 215 of file random.h.

template<typename T >
void pcl::common::NormalGenerator< T >::setParameters ( mean,
sigma,
pcl::uint32_t  seed = -1 
)

Set the normal number generator parameters

Parameters:
[in]meanmean of the normal distribution
[in]sigmastandard variation of the normal distribution
[in]seedrandom number generator seed (applied if != -1)

Definition at line 155 of file random.hpp.

template<typename T >
void pcl::common::NormalGenerator< T >::setParameters ( const Parameters parameters)

Set generator parameters

Parameters:
parametersnormal distribution parameters and seed

Definition at line 174 of file random.hpp.

template<typename T >
void pcl::common::NormalGenerator< T >::setSeed ( pcl::uint32_t  seed)

Change seed value

Parameters:
[in]seednew seed value

Definition at line 144 of file random.hpp.


Member Data Documentation

normal distribution

Definition at line 222 of file random.h.

template<typename T >
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.

parameters

Definition at line 220 of file random.h.

template<typename T >
EngineType pcl::common::NormalGenerator< T >::rng_

random number generator

Definition at line 224 of file random.h.


The documentation for this class was generated from the following files:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:48