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

Public Member Functions

 NormalVariableImpl ()
 NormalVariableImpl (double m, double v, double b=INFINITE_VALUE)
 Construct a normal random variable with specified mean and variance.
 NormalVariableImpl (const NormalVariableImpl &c)
virtual RandomVariableBaseCopy (void) const
double GetBound (void) const
double GetMean (void) const
virtual double GetValue ()
double GetVariance (void) const
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase ()
 RandomVariableBase (const RandomVariableBase &o)
virtual ~RandomVariableBase ()
virtual uint32_t GetInteger ()
RngStreamGetStream (void)

Static Public Attributes

static const double INFINITE_VALUE = 1e307

Private Attributes

double m_bound
double m_mean
double m_next
bool m_nextValid
double m_variance

Detailed Description

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

Constructor & Destructor Documentation

ns3::NormalVariableImpl::NormalVariableImpl ( )

Constructs an normal random variable with a mean value of 0 and variance of 1.

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

Referenced by Copy().

+ Here is the caller graph for this function:

ns3::NormalVariableImpl::NormalVariableImpl ( double  m,
double  v,
double  b = INFINITE_VALUE 
)

Construct a normal random variable with specified mean and variance.

Parameters
mMean value
vVariance
bBound. The NormalVariableImpl is bounded within +-bound of the mean.

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

ns3::NormalVariableImpl::NormalVariableImpl ( const NormalVariableImpl c)

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

Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References NormalVariableImpl().

+ Here is the call graph for this function:

double ns3::NormalVariableImpl::GetBound ( void  ) const

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

References m_bound.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

double ns3::NormalVariableImpl::GetMean ( void  ) const

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

References m_mean.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

double ns3::NormalVariableImpl::GetValue ( void  )
virtual
Returns
A value from this normal distribution

Implements ns3::RandomVariableBase.

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

References ns3::RandomVariableBase::GetStream(), m_bound, m_mean, m_next, m_nextValid, m_variance, ns3::RngStream::RandU01(), and visualizer.higcontainer::w.

+ Here is the call graph for this function:

double ns3::NormalVariableImpl::GetVariance ( void  ) const

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

References m_variance.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

Member Data Documentation

const double ns3::NormalVariableImpl::INFINITE_VALUE = 1e307
static

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

Referenced by ns3::operator<<().

double ns3::NormalVariableImpl::m_bound
private

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

Referenced by GetBound(), and GetValue().

double ns3::NormalVariableImpl::m_mean
private

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

Referenced by GetMean(), and GetValue().

double ns3::NormalVariableImpl::m_next
private

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

Referenced by GetValue().

bool ns3::NormalVariableImpl::m_nextValid
private

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

Referenced by GetValue().

double ns3::NormalVariableImpl::m_variance
private

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

Referenced by GetValue(), and GetVariance().


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