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

ValueGenerator_Random Template Class Reference

Choose value from a given random distribution. More...

#include <valuegen.h>

Inheritance diagram for ValueGenerator_Random

Inheritance graph

[legend]
Collaboration diagram for ValueGenerator_Random:

Collaboration graph

[legend]
List of all members.

Public Methods

 ValueGenerator_Random (T mean, T radius=0)
 ValueGenerator_Random (T* mean_ptr, T* radius_ptr)
 ValueGenerator_Random (StringArgs& args)
 ValueGenerator_Random (const ValueGenerator_Random& other)
 Copy constructor. More...

virtual bool next ()
 Advance to the next state (whatever that means for this object). More...

virtual void reset ()
 Reset to the starting state. More...

virtual ValueGenerator<T>* clone () const
 Constructs an identical copy of self and returns it. More...


Detailed Description

template<class T = double, randomgen_fnPtr random_fn = uniform_distribution> template class ValueGenerator_Random

Choose value from a given random distribution.

Definition at line 155 of file valuegen.h.


Constructor & Destructor Documentation

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
ValueGenerator_Random<T, random_fn>::ValueGenerator_Random<T, random_fn> ( T mean,
T radius = 0 )
 

Parameters:
radius   No randomness, by default (just like ValueGenerator)

Definition at line 162 of file valuegen.h.

Referenced by clone().

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
ValueGenerator_Random<T, random_fn>::ValueGenerator_Random<T, random_fn> ( T * mean_ptr,
T * radius_ptr )
 

Parameters:
radius_ptr   Use external radius and mean

Definition at line 165 of file valuegen.h.

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
ValueGenerator_Random<T, random_fn>::ValueGenerator_Random<T, random_fn> ( StringArgs & args )
 

Definition at line 169 of file valuegen.h.

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
ValueGenerator_Random<T, random_fn>::ValueGenerator_Random<T, random_fn> ( const ValueGenerator_Random<T, random_fn> & other )
 

Copy constructor.

Definition at line 176 of file valuegen.h.


Member Function Documentation

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
ValueGenerator< T >* ValueGenerator_Random<T, random_fn>::clone<T> ( ) const [inline, virtual]
 

Constructs an identical copy of self and returns it.

Reimplemented from ValueGenerator.

Definition at line 186 of file valuegen.h.

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
bool ValueGenerator_Random<T, random_fn>::next ( void ) [inline, virtual]
 

Advance to the next state (whatever that means for this object).

Reimplemented from ValueGenerator.

Definition at line 181 of file valuegen.h.

template<classT = double, randomgen_fnPtrrandom_fn = uniform_distribution>
void ValueGenerator_Random<T, random_fn>::reset ( ) [inline, virtual]
 

Reset to the starting state.

Reimplemented from ValueGenerator.

Definition at line 184 of file valuegen.h.


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:28 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000