RandomDistribution Class Reference

Interface for random number distributions. More...

#include <RandomDistribution.h>

Inheritance diagram for RandomDistribution:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~RandomDistribution ()
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.

Definition at line 21 of file RandomDistribution.h.


Constructor & Destructor Documentation

virtual RandomDistribution::~RandomDistribution (  )  [inline, virtual]

Definition at line 24 of file RandomDistribution.h.


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)

Definition at line 27 of file RandomDistribution.h.

shared_ptr< std::vector< double > > RandomDistribution::operator() ( RandomEngine eng,
size_t  n 
)

Definition at line 11 of file RandomDistribution.cpp.

virtual RandomDistribution* RandomDistribution::clone ( void   )  const [pure virtual]

virtual double RandomDistribution::get ( RandomEngine eng  )  [inline, protected, virtual]


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

Generated on Wed Jul 9 16:34:52 2008 for PCSIM by  doxygen 1.5.5