User Manual, Developers Guide and API Documentation

wns::distribution::NegExp Class Reference

Generate random numbers accoriding to negative exponential distribution.

#include <distribution/NegExp.hpp>

Inheritance diagram for wns::distribution::NegExp:

Inheritance graph
[legend]
Collaboration diagram for wns::distribution::NegExp:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual double getMean () const
 Mean value of the distribution.
 NegExp (wns::rng::RNGen *rng, const pyconfig::View &config)
 NegExp (const pyconfig::View &config)
 NegExp (const double mean, wns::rng::RNGen *rng=wns::simulator::getRNG())
virtual double operator() ()
 returns the random value according to the distribution.
virtual std::string paramString () const
 returns a string describing distribution and parameters
virtual ~NegExp ()

Private Attributes

NegExpDist dis_
double mean_


Detailed Description

Definition at line 42 of file NegExp.hpp.


Constructor & Destructor Documentation

NegExp::NegExp ( const double  mean,
wns::rng::RNGen rng = wns::simulator::getRNG() 
) [explicit]

Definition at line 43 of file NegExp.cpp.

NegExp::NegExp ( const pyconfig::View config  )  [explicit]

Definition at line 50 of file NegExp.cpp.

NegExp::NegExp ( wns::rng::RNGen rng,
const pyconfig::View config 
) [explicit]

Definition at line 57 of file NegExp.cpp.

NegExp::~NegExp (  )  [virtual]

Definition at line 64 of file NegExp.cpp.


Member Function Documentation

double NegExp::getMean (  )  const [virtual]

Implements wns::distribution::IHasMean.

Definition at line 76 of file NegExp.cpp.

double NegExp::operator() (  )  [virtual]

Implements wns::distribution::Distribution.

Definition at line 70 of file NegExp.cpp.

std::string NegExp::paramString (  )  const [virtual]

Implements wns::distribution::Distribution.

Definition at line 82 of file NegExp.cpp.


Member Data Documentation

Definition at line 71 of file NegExp.hpp.

Definition at line 70 of file NegExp.hpp.


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

Generated on Sat May 26 03:32:52 2012 for openWNS by  doxygen 1.5.5