library of assembled shared sources |
http://lass.cocamware.com |
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) |
distribution classes:
enum lass::num::RangeType |
enumeration indicating how a real-number range must be closed.
rtClosed | range is closed on both sides: [inf, sup] |
rtRightOpen | range is open to the right: [inf, sup) |
rtLeftOpen | range is open to the left: (inf, sup] |
rtOpen | range is open to both sides: (inf, sup) |
Definition at line 76 of file distribution.h.
T lass::num::uniform | ( | RG & | generator | ) | [inline] |
Definition at line 286 of file distribution.inl.
References lass::num::distributeUniform().
Referenced by lass::prim::Aabb3D< T, MinMaxPolicy >::random(), and lass::prim::Aabb2D< T, MinMaxPolicy >::random().
T lass::num::unitGauss | ( | RG & | generator | ) | [inline] |
Definition at line 296 of file distribution.inl.
T lass::num::gauss | ( | RG & | generator, | |
typename util::CallTraits< T >::TParam | mean, | |||
typename util::CallTraits< T >::TParam | stddev | |||
) | [inline] |
Definition at line 307 of file distribution.inl.
Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by 1.5.7.1 |