#include <delayprofile.h>
Inheritance diagram for simthlib::ExponentialDelayProfile:
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 |
With a given delay attenuation lambda and maximal delay T the probability density function of the delay is
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 , but that should not be confused with the attenuation 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 and . Also and additionally, previously the constructor argument was in fact the mean value even though all documentation implied it were the attenuation.
|
Class constructor. Previous documentation here errornously confused and . Also and additionally, previously the constructor argument was in fact the mean value even though all documentation implied it were the attenuation.
|
|
Class destructor. |
|
Attenuation factor (lambda) of the exponential delay profile (approx. = 1/mean). |
|
Returns a random delay variant from an exponential distribution. Implements simthlib::DelayProfile. |
|
Implements simthlib::DelayProfile. |
|
Printing some information to the specified output stream. Implements simthlib::DelayProfile. |