Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

zeitgeist::RandomServer Class Reference

The random server provides access to the salt RandomEngine from with the zeitgeist framework. More...

#include <randomserver.h>

Inheritance diagram for zeitgeist::RandomServer:

Inheritance graph
[legend]
Collaboration diagram for zeitgeist::RandomServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RandomServer ()
 constructs a RandomServer
virtual ~RandomServer ()
void Seed (salt::RandomEngine::result_type seed)
 set a random seed
template<class RealType>
RealType GetUniformRandom (RealType min, RealType max) const
 get a uniformly distributed random number
template<class RealType>
RealType GetNormalRandom (RealType mean, RealType sigma) const
template<class RealType>
RealType GetExponentialRandom (RealType lambda) const

Detailed Description

The random server provides access to the salt RandomEngine from with the zeitgeist framework.

Additionally, it provides interfaces to set a seed and access some distributions.

Definition at line 37 of file randomserver.h.


Constructor & Destructor Documentation

zeitgeist::RandomServer::RandomServer  )  [inline]
 

constructs a RandomServer

Definition at line 41 of file randomserver.h.

virtual zeitgeist::RandomServer::~RandomServer  )  [inline, virtual]
 

Definition at line 43 of file randomserver.h.


Member Function Documentation

template<class RealType>
RealType zeitgeist::RandomServer::GetExponentialRandom RealType  lambda  )  const [inline]
 

Definition at line 71 of file randomserver.h.

template<class RealType>
RealType zeitgeist::RandomServer::GetNormalRandom RealType  mean,
RealType  sigma
const [inline]
 

Definition at line 65 of file randomserver.h.

template<class RealType>
RealType zeitgeist::RandomServer::GetUniformRandom RealType  min,
RealType  max
const [inline]
 

get a uniformly distributed random number

Definition at line 59 of file randomserver.h.

void zeitgeist::RandomServer::Seed salt::RandomEngine::result_type  seed  )  [inline]
 

set a random seed

Definition at line 46 of file randomserver.h.

References salt::RandomEngine::instance().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Thu Apr 6 15:50:59 2006 for rcssserver3d by  doxygen 1.4.4