MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Public Member Functions | Properties
MCScheduling.Utils.CExponentialRandom Class Reference

A exponential distribution random number generator. More...

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

MCScheduling.Utils.CExponentialRandom.CExponentialRandom ( double  lambda)

Creates a random number generator with exponential distribution with lambda set to the specified value.

Parameters:
lambdaThe 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.

Parameters:
seedThe 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.

Parameters:
lambdaThe distribution parameter.
seedThe value used to initialize the generator.

Member Function Documentation

double MCScheduling.Utils.CExponentialRandom.Next ( )

Generates a random non-negative decimal drawn from exponential distribution.

Returns:
A random non-negative decimal drawn from exponential distribution

Property Documentation

double MCScheduling.Utils.CExponentialRandom.Lambda [get, set]

The rate parameter setter and getter.

 All Classes Namespaces Functions Variables Properties