User Manual, Developers Guide and API Documentation

rise::scenario::pathloss::detail::HashRNG Class Reference

Helper that can be used as pseudo-random number generator for boost distributions. This may only be used to draw one random number from the distribution. DO NOT USE as a random number generator!!! More...

#include <scenario/pathloss/HashRNG.hpp>

Collaboration diagram for rise::scenario::pathloss::detail::HashRNG:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HashRNG (unsigned int initialSeed, wns::Position p1, wns::Position p2, bool correlateBS, bool correlateUT)
double max ()
double min ()
double operator() ()

Static Public Attributes

static const bool has_fixed_range = true

Private Member Functions

template<typename T>
void combine (unsigned int &hash, T t)

Private Attributes

boost::variate_generator
< boost::mt19937
&, boost::uniform_real<> > 
dis
unsigned int myHash
boost::mt19937 rng
boost::uniform_real uni


Detailed Description

Author:
Daniel Bueltmann <openwns@doender.de>

Definition at line 45 of file HashRNG.hpp.


Constructor & Destructor Documentation

HashRNG::HashRNG ( unsigned int  initialSeed,
wns::Position  p1,
wns::Position  p2,
bool  correlateBS,
bool  correlateUT 
)

Definition at line 36 of file HashRNG.cpp.


Member Function Documentation

template<typename T>
void rise::scenario::pathloss::detail::HashRNG::combine ( unsigned int hash,
t 
) [inline, private]

Definition at line 73 of file HashRNG.hpp.

double rise::scenario::pathloss::detail::HashRNG::max (  )  [inline]

Definition at line 66 of file HashRNG.hpp.

double rise::scenario::pathloss::detail::HashRNG::min (  )  [inline]

Definition at line 60 of file HashRNG.hpp.

double HashRNG::operator() (  ) 

Definition at line 102 of file HashRNG.cpp.


Member Data Documentation

boost::variate_generator<boost::mt19937&, boost::uniform_real<> > rise::scenario::pathloss::detail::HashRNG::dis [private]

Definition at line 91 of file HashRNG.hpp.

Definition at line 54 of file HashRNG.hpp.

Definition at line 93 of file HashRNG.hpp.

Definition at line 89 of file HashRNG.hpp.

boost::uniform_real rise::scenario::pathloss::detail::HashRNG::uni [private]

Definition at line 90 of file HashRNG.hpp.


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

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