Library of Assembled Shared Sources
|
A set of distribution for random numbers.
distribution classes:
backwards compatible functions:
Data Structures | |
class | lass::num::DistributionUniform< T, RandomGenerator, rangeType > |
a uniform distribution mapper. More... | |
class | lass::num::DistributionExponential< T, RandomGenerator > |
an exponential distribution mapper. More... | |
class | lass::num::DistributionNormal< T, RandomGenerator > |
a normal distribution mapper (aka guassian distribution) More... | |
Enumerations | |
enum | lass::num::RangeType { lass::num::rtClosed = 0x0 , lass::num::rtRightOpen = 0x1 , lass::num::rtLeftOpen = 0x2 , lass::num::rtOpen = 0x3 } |
enumeration indicating how a real-number range must be closed. More... | |
Functions | |
template<class T, class RG> | |
T | lass::num::uniform (RG &generator) |
template<class T, class RG> | |
T | lass::num::unitGauss (RG &generator) |
template<class T, class RG> | |
T | lass::num::gauss (RG &generator, typename util::CallTraits< T >::TParam mean, typename util::CallTraits< T >::TParam stddev) |
enum lass::num::RangeType |
enumeration indicating how a real-number range must be closed.
Definition at line 76 of file distribution.h.
T lass::num::uniform | ( | RG & | generator | ) |
Definition at line 296 of file distribution.inl.
T lass::num::unitGauss | ( | RG & | generator | ) |
Definition at line 306 of file distribution.inl.
T lass::num::gauss | ( | RG & | generator, |
typename util::CallTraits< T >::TParam | mean, | ||
typename util::CallTraits< T >::TParam | stddev ) |
Definition at line 317 of file distribution.inl.