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

Public Member Functions

 WeibullVariableImpl ()
 WeibullVariableImpl (double m)
 WeibullVariableImpl (double m, double s)
 WeibullVariableImpl (double m, double s, double b)
 Constructs a weibull random variable with the specified mean.
 WeibullVariableImpl (const WeibullVariableImpl &c)
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_alpha
double m_bound
double m_mean

Detailed Description

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

Constructor & Destructor Documentation

ns3::WeibullVariableImpl::WeibullVariableImpl ( )

Constructs a weibull random variable with a mean value of 1.0 and a shape (alpha) parameter of 1

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

Referenced by Copy().

+ Here is the caller graph for this function:

ns3::WeibullVariableImpl::WeibullVariableImpl ( double  m)

Constructs a weibull random variable with the specified mean value and a shape (alpha) parameter of 1.5.

Parameters
mmean value of the distribution

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

ns3::WeibullVariableImpl::WeibullVariableImpl ( double  m,
double  s 
)

Constructs a weibull random variable with the specified mean value and a shape (alpha).

Parameters
mMean value for the distribution.
sShape (alpha) parameter for the distribution.

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

ns3::WeibullVariableImpl::WeibullVariableImpl ( double  m,
double  s,
double  b 
)

Constructs a weibull random variable with the specified mean.

value, shape (alpha), and upper bound. Since WeibullVariableImpl distributions can theoretically return unbounded values, it is sometimes usefull to specify a fixed upper limit. Note however that when the upper limit is specified, the true mean of the distribution is slightly smaller than the mean value specified.

Parameters
mMean value for the distribution.
sShape (alpha) parameter for the distribution.
bUpper limit on returned values

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

ns3::WeibullVariableImpl::WeibullVariableImpl ( const WeibullVariableImpl c)

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

Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References WeibullVariableImpl().

+ Here is the call graph for this function:

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

Implements ns3::RandomVariableBase.

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

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

+ Here is the call graph for this function:

Member Data Documentation

double ns3::WeibullVariableImpl::m_alpha
private

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

Referenced by GetValue().

double ns3::WeibullVariableImpl::m_bound
private

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

Referenced by GetValue().

double ns3::WeibullVariableImpl::m_mean
private

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

Referenced by GetValue().


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