Public Member Functions | Protected Member Functions

RandomDistribution Class Reference

Interface for random number distributions. More...

#include <RandomDistributionBase.h>

Inheritance diagram for RandomDistribution:
ClippedDistribution ConstantNumber RandomDistributionBoostImplementation< boost_dist > RandomDistributionBoostImplementation< boost::bernoulli_distribution< double > > RandomDistributionBoostImplementation< boost::binomial_distribution< int, double > > RandomDistributionBoostImplementation< boost::cauchy_distribution< double > > RandomDistributionBoostImplementation< boost::exponential_distribution< double > > RandomDistributionBoostImplementation< boost::gamma_distribution< double > > RandomDistributionBoostImplementation< boost::geometric_distribution< int, double > > RandomDistributionBoostImplementation< boost::lognormal_distribution< double > > RandomDistributionBoostImplementation< boost::normal_distribution< double > > RandomDistributionBoostImplementation< boost::poisson_distribution< int, double > > RandomDistributionBoostImplementation< boost::triangle_distribution< double > > RandomDistributionBoostImplementation< boost::uniform_real< double > > UniformIntegerDistribution

List of all members.

Public Member Functions

double operator() (RandomEngine &eng)
 Return a random number specified by this distribution given a RandomEngine.
shared_ptr< std::vector< double > > operator() (RandomEngine &eng, size_t n)
virtual RandomDistributionclone (void) const =0

Protected Member Functions

virtual double get (RandomEngine &eng)

Detailed Description

Interface for random number distributions.


Member Function Documentation

double RandomDistribution::operator() ( RandomEngine eng  )  [inline]

Return a random number specified by this distribution given a RandomEngine.

  • eng uniform random number generator. It is assumed that eng() returns a random number in the interval [0,1)

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