Simpact Cyan
Population based event driven simulation using mNRM
Public Member Functions | List of all members
ExponentialDistribution Class Reference

This class allows you to return a random number picked from an exponential distribution with specified scale factor. More...

#include <exponentialdistribution.h>

Inheritance diagram for ExponentialDistribution:
Inheritance graph
[legend]
Collaboration diagram for ExponentialDistribution:
Collaboration graph
[legend]

Public Member Functions

 ExponentialDistribution (double a, GslRandomNumberGenerator *pRng)
 The constructor specifies parameters for a gamma distribution. More...
 
double pickNumber () const
 Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistribution . More...
 

Detailed Description

This class allows you to return a random number picked from an exponential distribution with specified scale factor.

The probability density is the following:

\[ \textrm{prob}(x) = a \exp(-a x) \]

Constructor & Destructor Documentation

ExponentialDistribution::ExponentialDistribution ( double  a,
GslRandomNumberGenerator pRng 
)
inline

The constructor specifies parameters for a gamma distribution.

Member Function Documentation

double ExponentialDistribution::pickNumber ( ) const
inlinevirtual

Pick a number according to a specific distrubution, specified in a subclass of ProbabilityDistribution .

Implements ProbabilityDistribution.


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