Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::ExponentialDelayProfile Class Reference

Random generator for exponentially distributed delay profiles. More...

#include <delayprofile.h>

Inheritance diagram for simthlib::ExponentialDelayProfile:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ExponentialDelayProfile (double att, double maxT)
virtual ~ExponentialDelayProfile ()
double get () const
double attenuationFactor () const
double maxDelay () const
virtual void print (std::ostream &os) const

Detailed Description

Random generator for exponentially distributed delay profiles.

With a given delay attenuation lambda and maximal delay T the probability density function of the delay is

\[ f(x) = \left\{ \begin{array}{cl} 0 & \mbox{for } x<0, x>T \\ \frac{\lambda}{1-e^{-\lambda T}} e^{-\lambda x} & \mbox{for }0\le x\le T \end{array} \right. \]

This is a truncated exponential distribution; see simth::ExponentialMaxLimitRng in Simthetic for an explanation on how close this comes to a normal exponential.

WATCH OUT: The mean value of a normal exponential is $\mu=1/\lambda$, but that should not be confused with the attenuation $\lambda$ that should be given here! You have to give the attenuation here, not the mean.

The delay attenuation lambda and the maximal range Tmax are given as constructor arguments.

Previous documentation here errornously confused $\lambda$ and $1/\lambda$. Also and additionally, previously the constructor argument was in fact the mean value even though all documentation implied it were the attenuation.


Constructor & Destructor Documentation

simthlib::ExponentialDelayProfile::ExponentialDelayProfile double  att,
double  maxT
 

Class constructor.

Previous documentation here errornously confused $\lambda$ and $1/\lambda$. Also and additionally, previously the constructor argument was in fact the mean value even though all documentation implied it were the attenuation.

Parameters:
att Attenuation $\lambda$ with $p(\tau) = \lambda e^{-\lambda\tau}$
maxT Maximal Delay.

virtual simthlib::ExponentialDelayProfile::~ExponentialDelayProfile  )  [virtual]
 

Class destructor.


Member Function Documentation

double simthlib::ExponentialDelayProfile::attenuationFactor  )  const [inline]
 

Attenuation factor (lambda) of the exponential delay profile (approx. = 1/mean).

double simthlib::ExponentialDelayProfile::get  )  const [virtual]
 

Returns a random delay variant from an exponential distribution.

Implements simthlib::DelayProfile.

double simthlib::ExponentialDelayProfile::maxDelay  )  const [inline, virtual]
 

Implements simthlib::DelayProfile.

virtual void simthlib::ExponentialDelayProfile::print std::ostream &  os  )  const [virtual]
 

Printing some information to the specified output stream.

Implements simthlib::DelayProfile.


Generated on Tue Aug 9 14:37:33 2005 for simtheticlib by  doxygen 1.4.1