ns3::SequentialVariable Class Reference
[Random Variable Distributions]

Return a sequential list of values

Class SequentialVariable defines a random number generator that returns a sequential sequence. The sequence monotonically increases for a period, then wraps around to the low value and begins monotonicaly increasing again. More...

#include <random-variable.h>

Inheritance diagram for ns3::SequentialVariable:

Inheritance graph
[legend]
Collaboration diagram for ns3::SequentialVariable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SequentialVariable (double f, double l, double i=1, uint32_t c=1)
 Constructor for the SequentialVariable RNG.
 SequentialVariable (double f, double l, const RandomVariable &i, uint32_t c=1)
 Constructor for the SequentialVariable RNG.


Detailed Description

Return a sequential list of values

Class SequentialVariable defines a random number generator that returns a sequential sequence. The sequence monotonically increases for a period, then wraps around to the low value and begins monotonicaly increasing again.


Constructor & Destructor Documentation

ns3::SequentialVariable::SequentialVariable ( double  f,
double  l,
double  i = 1,
uint32_t  c = 1 
)

Constructor for the SequentialVariable RNG.

The four parameters define the sequence. For example SequentialVariable(0,5,1,2) creates a RNG that has the sequence 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 0, 0 ...

Parameters:
f First value of the sequence.
l One more than the last value of the sequence.
i Increment between sequence values
c Number of times each member of the sequence is repeated

ns3::SequentialVariable::SequentialVariable ( double  f,
double  l,
const RandomVariable i,
uint32_t  c = 1 
)

Constructor for the SequentialVariable RNG.

Differs from the first only in that the increment parameter is a random variable

Parameters:
f First value of the sequence.
l One more than the last value of the sequence.
i Reference to a RandomVariable for the sequence increment
c Number of times each member of the sequence is repeated


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

Generated on Fri Apr 9 15:01:09 2010 for NS-3 by  doxygen 1.5.8