#include <CRandVec.h>
Inheritance diagram for CRandVec::

Public Methods | |
| CRandVec (RNG *generator=NULL) | |
| Constructor, which can be initialized with a rng. | |
| virtual | ~CRandVec () |
| Dummy destructor. | |
| virtual DoubleVector & | operator() () |
| Operator that generates a vector of random values. | |
| virtual void | operator() (DoubleVector &vec)=0 |
| Method that returns a vector of random variables in the vec argument. | |
| virtual RNG * | generator () |
| Returns the rng used by this instance. | |
| virtual void | generator (RNG *p) |
| Set the rng used by this instance. | |
Protected Attributes | |
| RNG * | pGenerator |
| The rng used by this instance. | |
| DoubleVector | results |
The vector of values that is returned by the operator() method. | |
Adapted from GNU code by Dirk Grunwald.