Random Class Reference
Provides static functionality for generating base random numbers, wrapping around boost::random, shared by all Samplers. More...
#include <Random.h>
Public Types | |
Typedefs for boost's generator/distribution interface | |
| typedef boost::mt19937 | Generator |
| typedef boost::normal_distribution < real_t > | NormalDist |
| typedef boost::variate_generator < Generator &, NormalDist > | BoostNormalSampler |
| typedef boost::uniform_real < real_t > | ContUniformDist |
| typedef boost::variate_generator < Generator &, ContUniformDist > | BoostContUniformSampler |
| typedef boost::uniform_int< int > | DiscreteUniformDist |
| typedef boost::variate_generator < Generator &, DiscreteUniformDist > | BoostDiscreteUniformSampler |
| typedef boost::exponential_distribution < real_t > | ExponentialDist |
| typedef boost::variate_generator < Generator &, ExponentialDist > | BoostExponentialSampler |
| typedef boost::uniform_on_sphere < real_t > | UniformOnSphereDist |
| typedef boost::variate_generator < Generator &, UniformOnSphereDist > | BoostUniformOnSphereSampler |
Static Public Member Functions | |
Static utility methods | |
| static void | init () |
| Initializes the Random library routines; must be called before using any functionality of the Milton random number generators. | |
| static real_t | sample (real_t min=0, real_t max=1) |
| static real_t | uniform (real_t min=0, real_t max=1) |
| static int | sampleInt (int min, int max) |
| static unsigned | sampleCDF (const real_t *cdf, unsigned n) |
| static unsigned | sampleNormalizedCDF (const real_t *cdf, unsigned n) |
Static Public Attributes | |
Static boost helper classes | |
| static Generator | s_generator |
Detailed Description
Provides static functionality for generating base random numbers, wrapping around boost::random, shared by all Samplers.
- Date:
- fall 2008
Definition at line 21 of file Random.h.
Member Typedef Documentation
| typedef boost::mt19937 Random::Generator |
| typedef boost::normal_distribution<real_t> Random::NormalDist |
| typedef boost::variate_generator<Generator&, NormalDist > Random::BoostNormalSampler |
| typedef boost::uniform_real<real_t> Random::ContUniformDist |
| typedef boost::variate_generator<Generator&, ContUniformDist > Random::BoostContUniformSampler |
| typedef boost::uniform_int<int> Random::DiscreteUniformDist |
| typedef boost::variate_generator<Generator&, DiscreteUniformDist > Random::BoostDiscreteUniformSampler |
| typedef boost::exponential_distribution<real_t> Random::ExponentialDist |
| typedef boost::variate_generator<Generator&, ExponentialDist > Random::BoostExponentialSampler |
| typedef boost::uniform_on_sphere<real_t> Random::UniformOnSphereDist |
| typedef boost::variate_generator<Generator&, UniformOnSphereDist > Random::BoostUniformOnSphereSampler |
Member Function Documentation
| static void Random::init | ( | ) | [inline, static] |
| static int Random::sampleInt | ( | int | min, | |
| int | max | |||
| ) | [inline, static] |
| static unsigned Random::sampleCDF | ( | const real_t * | cdf, | |
| unsigned | n | |||
| ) | [inline, static] |
| static unsigned Random::sampleNormalizedCDF | ( | const real_t * | cdf, | |
| unsigned | n | |||
| ) | [inline, static] |
Member Data Documentation
Random::Generator Random::s_generator [static] |
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6