A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::UniformVariableImpl Class Reference
+ Inheritance diagram for ns3::UniformVariableImpl:
+ Collaboration diagram for ns3::UniformVariableImpl:

Public Member Functions

 UniformVariableImpl ()
 UniformVariableImpl (double s, double l)
 UniformVariableImpl (const UniformVariableImpl &c)
virtual RandomVariableBaseCopy (void) const
double GetMax (void) const
double GetMin (void) const
virtual double GetValue ()
virtual double GetValue (double s, double l)
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase ()
 RandomVariableBase (const RandomVariableBase &o)
virtual ~RandomVariableBase ()
virtual uint32_t GetInteger ()
RngStreamGetStream (void)

Private Attributes

double m_max
double m_min

Detailed Description

Definition at line 157 of file random-variable.cc.

Constructor & Destructor Documentation

ns3::UniformVariableImpl::UniformVariableImpl ( )

Creates a uniform random number generator in the range [0.0 .. 1.0).

Definition at line 195 of file random-variable.cc.

Referenced by Copy().

+ Here is the caller graph for this function:

ns3::UniformVariableImpl::UniformVariableImpl ( double  s,
double  l 
)

Creates a uniform random number generator with the specified range

Parameters
sLow end of the range
lHigh end of the range

Definition at line 201 of file random-variable.cc.

ns3::UniformVariableImpl::UniformVariableImpl ( const UniformVariableImpl c)

Definition at line 207 of file random-variable.cc.

Member Function Documentation

RandomVariableBase * ns3::UniformVariableImpl::Copy ( void  ) const
virtual

Implements ns3::RandomVariableBase.

Definition at line 238 of file random-variable.cc.

References UniformVariableImpl().

+ Here is the call graph for this function:

double ns3::UniformVariableImpl::GetMax ( void  ) const

Definition at line 220 of file random-variable.cc.

References m_max.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

double ns3::UniformVariableImpl::GetMin ( void  ) const

Definition at line 215 of file random-variable.cc.

References m_min.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

double ns3::UniformVariableImpl::GetValue ( void  )
virtual
Returns
A value between low and high values specified by the constructor

Implements ns3::RandomVariableBase.

Definition at line 226 of file random-variable.cc.

References ns3::RandomVariableBase::GetStream(), m_max, m_min, and ns3::RngStream::RandU01().

+ Here is the call graph for this function:

double ns3::UniformVariableImpl::GetValue ( double  s,
double  l 
)
virtual
Returns
A value between low and high values specified by parameters

Definition at line 232 of file random-variable.cc.

References ns3::RandomVariableBase::GetStream(), and ns3::RngStream::RandU01().

+ Here is the call graph for this function:

Member Data Documentation

double ns3::UniformVariableImpl::m_max
private

Definition at line 192 of file random-variable.cc.

Referenced by GetMax(), and GetValue().

double ns3::UniformVariableImpl::m_min
private

Definition at line 191 of file random-variable.cc.

Referenced by GetMin(), and GetValue().


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