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

Public Member Functions

 LogNormalVariableImpl (double mu, double sigma)
 
virtual RandomVariableBaseCopy (void) const
 
virtual double GetValue ()
 
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase ()
 
 RandomVariableBase (const RandomVariableBase &o)
 
virtual ~RandomVariableBase ()
 
virtual uint32_t GetInteger ()
 
RngStreamGetStream (void)
 

Private Attributes

double m_mu
 
double m_sigma
 

Detailed Description

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

Constructor & Destructor Documentation

ns3::LogNormalVariableImpl::LogNormalVariableImpl ( double  mu,
double  sigma 
)
Parameters
mumu parameter of the lognormal distribution
sigmasigma parameter of the lognormal distribution

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

References NS_LOG_FUNCTION.

Referenced by Copy().

+ Here is the caller graph for this function:

Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References LogNormalVariableImpl(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

double ns3::LogNormalVariableImpl::GetValue ( void  )
virtual
Returns
A random value from this distribution

Implements ns3::RandomVariableBase.

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

References ns3::RandomVariableBase::GetStream(), m_mu, m_sigma, ns3::normal, NS_LOG_FUNCTION, and ns3::RngStream::RandU01().

+ Here is the call graph for this function:

Member Data Documentation

double ns3::LogNormalVariableImpl::m_mu
private

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

Referenced by GetValue().

double ns3::LogNormalVariableImpl::m_sigma
private

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

Referenced by GetValue().


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