Public Methods |
virtual IRandomGenerator * | newGenerator (const AIDA_STD::string &="flat", const double &=0.0, const double &=0.0, const double &=0.0)=0 |
| Produce new generator from one of (usually) several options such as Gaussian, exponential, etc. Non-default parameters can be passed and will be used if reasonable.
|
virtual IRandomGenerator * | newGenerator (const AIDA_STD::vector< double > &, const AIDA_STD::string &="", const double &=0.0, const double &=1.0)=0 |
| Produce a new generator from a vector of positive real numbers representing the function. Bad vectors are ignored and a default (flat) generator is created instead. The lower and upper bounds of the vector may be specified if required (defaults 0 and 1, repectively).
|
virtual int | nGenerators (void) const=0 |
| how many generators?
|
virtual IRandomGenerator * | gen (const int &id)=0 |
| Retrieve a generator by ID. Passing a non-existent ID will create a new generator with default parameters and return a pointer to that.
|
virtual void | destroy (const int &victim)=0 |
| delete one generator by ID
|
virtual void | destroyAll (void)=0 |
| Delete all generators (all pointers to generators invalidated).
|
virtual void | listGenerators (AIDA_STD::ostream &=AIDA_STD::cout) const=0 |
| Dump list of current generators.
|
virtual | ~IRandomManager () |