MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
A exponential distribution random number generator. More...
Public Member Functions | |
CExponentialRandom () | |
Creates a random number generator with exponential distribution with lambda set to 1.0 (default). | |
CExponentialRandom (double lambda) | |
Creates a random number generator with exponential distribution with lambda set to the specified value. | |
CExponentialRandom (ulong seed) | |
Creates a random number generator with exponential distribution with lambda set to 1.0 (default) and initializes the generator with the specified seed. | |
CExponentialRandom (double lambda, ulong seed) | |
Creates a random number generator with exponential distribution with lambda set to the specified value, and initializes the generator with the specified seed. | |
double | Next () |
Generates a random non-negative decimal drawn from exponential distribution. | |
Properties | |
double | Lambda [get, set] |
The rate parameter setter and getter. |
A exponential distribution random number generator.
The method of generation random number is based on inverse transform sampling: -ln(U)/lambda, where U is drawn from the uniform distribution on the unit interval (0,1), and lambda is the parameter of the distribution, so-called rate parameter.
MCScheduling.Utils.CExponentialRandom.CExponentialRandom | ( | double | lambda | ) |
Creates a random number generator with exponential distribution with lambda set to the specified value.
lambda | The distribution parameter. |
MCScheduling.Utils.CExponentialRandom.CExponentialRandom | ( | ulong | seed | ) |
Creates a random number generator with exponential distribution with lambda set to 1.0 (default) and initializes the generator with the specified seed.
seed | The value used to initialize the generator. |
MCScheduling.Utils.CExponentialRandom.CExponentialRandom | ( | double | lambda, |
ulong | seed | ||
) |
Creates a random number generator with exponential distribution with lambda set to the specified value, and initializes the generator with the specified seed.
lambda | The distribution parameter. |
seed | The value used to initialize the generator. |
double MCScheduling.Utils.CExponentialRandom.Next | ( | ) |
Generates a random non-negative decimal drawn from exponential distribution.
double MCScheduling.Utils.CExponentialRandom.Lambda [get, set] |
The rate parameter setter and getter.