ns3::TriangularVariableImpl Class Reference

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

List of all members.

Public Member Functions

 TriangularVariableImpl ()
 TriangularVariableImpl (double s, double l, double mean)
 TriangularVariableImpl (const TriangularVariableImpl &c)
virtual double GetValue ()
virtual RandomVariableBaseCopy (void) const

Static Public Member Functions

static double GetSingleValue (double s, double l, double mean)

Private Attributes

double m_min
double m_max
double m_mode

Detailed Description

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


Constructor & Destructor Documentation

ns3::TriangularVariableImpl::TriangularVariableImpl (  ) 

Creates a triangle distribution random number generator in the range [0.0 .. 1.0), with mean of 0.5

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

Referenced by Copy().

ns3::TriangularVariableImpl::TriangularVariableImpl ( double  s,
double  l,
double  mean 
)

Creates a triangle distribution random number generator with the specified range

Parameters:
s Low end of the range
l High end of the range
mean mean of the distribution

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

ns3::TriangularVariableImpl::TriangularVariableImpl ( const TriangularVariableImpl c  ) 

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


Member Function Documentation

RandomVariableBase * ns3::TriangularVariableImpl::Copy ( void   )  const [virtual]

Implements ns3::RandomVariableBase.

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

References TriangularVariableImpl().

double ns3::TriangularVariableImpl::GetSingleValue ( double  s,
double  l,
double  mean 
) [static]
Parameters:
s Low end of the range
l High end of the range
mean mean of the distribution
Returns:
A triangularly distributed random number between s and l

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

References ns3::RandomVariableBase::Initialize(), ns3::RngStream::InitializeStream(), ns3::RandomVariableBase::m_static_generator, and ns3::RngStream::RandU01().

double ns3::TriangularVariableImpl::GetValue (  )  [virtual]

Member Data Documentation

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

Referenced by GetValue().

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

Referenced by GetValue().

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

Referenced by GetValue().


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:10:29 2009 for NS-3 by  doxygen 1.6.3