library of assembled shared sources

http://lass.cocamware.com

Distribution

A set of distribution for random numbers. More...


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 >
lass::num::uniform (RG &generator)
template<class T , class RG >
lass::num::unitGauss (RG &generator)
template<class T , class RG >
lass::num::gauss (RG &generator, typename util::CallTraits< T >::TParam mean, typename util::CallTraits< T >::TParam stddev)


Detailed Description

A set of distribution for random numbers.

distribution classes:

backwards compatible functions:


Enumeration Type Documentation

enumeration indicating how a real-number range must be closed.

Enumerator:
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.


Function Documentation

template<class T , class RG >
T lass::num::uniform ( RG &  generator  )  [inline]

Returns:
a uniform random sample from [0,1]

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().

template<class T , class RG >
T lass::num::unitGauss ( RG &  generator  )  [inline]

Returns:
a gaussian distributed (aka normal distributed) random with mean 0 and stddev 1

Definition at line 296 of file distribution.inl.

template<class T , class RG >
T lass::num::gauss ( RG &  generator,
typename util::CallTraits< T >::TParam  mean,
typename util::CallTraits< T >::TParam  stddev 
) [inline]

Returns:
a gaussian distributed (aka normal distributed) random sample with mean and stddev stddev

Definition at line 307 of file distribution.inl.


Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo