ns3::WeibullVariableImpl Class Reference

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

List of all members.

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 double GetValue ()
virtual RandomVariableBaseCopy (void) const

Static Public Member Functions

static double GetSingleValue (double m, double s, double b=0)

Private Attributes

double m_mean
double m_alpha
double m_bound

Detailed Description

Definition at line 838 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 896 of file random-variable.cc.

Referenced by Copy().

ns3::WeibullVariableImpl::WeibullVariableImpl ( double  m  ) 

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

Parameters:
m mean value of the distribution

Definition at line 897 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:
m Mean value for the distribution.
s Shape (alpha) parameter for the distribution.

Definition at line 899 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:
m Mean value for the distribution.
s Shape (alpha) parameter for the distribution.
b Upper limit on returned values

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

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

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


Member Function Documentation

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

Implements ns3::RandomVariableBase.

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

References WeibullVariableImpl().

double ns3::WeibullVariableImpl::GetSingleValue ( double  m,
double  s,
double  b = 0 
) [static]
Parameters:
m Mean value for the distribution.
s Shape (alpha) parameter for the distribution.
b Upper limit on returned values
Returns:
Random number from a distribution specified by m,s, and b

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

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

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

Member Data Documentation

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

Referenced by GetValue().

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

Referenced by GetValue().

Definition at line 891 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:27 2009 for NS-3 by  doxygen 1.6.3