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

ValueGenerator_Random< T, RandomGen > Class Template Reference

#include <valuegen.h>

Inheritance diagram for ValueGenerator_Random< T, RandomGen >:

Inheritance graph
[legend]
Collaboration diagram for ValueGenerator_Random< T, RandomGen >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = double, class RandomGen = Distributions::uniform>
class ValueGenerator_Random< T, RandomGen >

Choose value from a given random distribution.

Definition at line 155 of file valuegen.h.

Public Methods

 ValueGenerator_Random (T mean, T radius=0)
 Constructor defaults to no randomness (which acts just like a regular ValueGenerator, except that relinking always replaces the pointer).

 ValueGenerator_Random (T *mean, T *radius)
 Constructor using external mean and radius.

 ValueGenerator_Random (StringArgs &args)
virtual string stringrep () const
 Note that the value returned does not indicate the actual RandomGen, which may differ from the defaults.

 ValueGenerator_Random (const self &other)
 Copy constructor.

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

virtual void reset ()
 Reset to the starting state.

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


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:29 2003 for RF-LISSOM by doxygen1.3-rc2