Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RouletteWheel Class Template Reference

#include <Roulette.h>

List of all members.

Public Methods

 RouletteWheel (size_t sz, FType *weights=NULL, int seed=0)
 RouletteWheel (const RouletteWheel &rw)
void operator= (const RouletteWheel &rw)
 ~RouletteWheel ()
FType Change (size_t i, FType weight)
size_t GetSize ()
FType GetWeight (size_t i)
size_t GetIndex ()

Protected Attributes

size_t N
FType* W
FType T
UniformRandom G

Private Methods

FType AbsVal (FType f)
void Copy (const RouletteWheel &rw)

template<class FType> class RouletteWheel


Constructor & Destructor Documentation

template<class FType>
RouletteWheel<FType>::RouletteWheel<FType> ( size_t sz,
FType * weights = NULL,
int seed = 0 )
 

template<class FType>
RouletteWheel< FType >::RouletteWheel<FType> ( const RouletteWheel<FType> & rw ) [inline]
 

Definition at line 153 of file Roulette.h.

template<class FType>
RouletteWheel<FType>::~RouletteWheel<FType> ( )
 


Member Function Documentation

template<class FType>
void RouletteWheel< FType >::operator= ( const RouletteWheel<FType> & rw ) [inline]
 

Definition at line 163 of file Roulette.h.

template<class FType>
FType RouletteWheel<FType>::Change ( size_t i,
FType weight )
 

template<class FType>
size_t RouletteWheel<FType>::GetSize ( ) [inline]
 

Definition at line 55 of file Roulette.h.

template<class FType>
FType RouletteWheel< FType >::GetWeight ( size_t i ) [inline]
 

Definition at line 200 of file Roulette.h.

template<class FType>
size_t RouletteWheel<FType>::GetIndex ( )
 

template<class FType>
FType RouletteWheel<FType>::AbsVal ( FType f ) [inline, private]
 

Definition at line 79 of file Roulette.h.

template<class FType>
void RouletteWheel<FType>::Copy ( const RouletteWheel<FType> & rw ) [private]
 


Member Data Documentation

template<class FType>
size_t RouletteWheel<FType>::N [protected]
 

Definition at line 67 of file Roulette.h.

template<class FType>
FType* RouletteWheel<FType>::W [protected]
 

Definition at line 68 of file Roulette.h.

template<class FType>
FType RouletteWheel<FType>::T [protected]
 

Definition at line 71 of file Roulette.h.

template<class FType>
UniformRandom RouletteWheel<FType>::G [protected]
 

Definition at line 74 of file Roulette.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:05 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001