#include <Random.h>
Inheritance diagram for RandomDistribution< RD >:

Public Types | |
| typedef Ref< _State > | State |
| typedef unsigned long int | SeedType |
Public Methods | |
| double | sample () |
| Sample the distribution. | |
| virtual void | setSeed (SeedType seed) |
| Reseed the random number generator. | |
| virtual State | getState () const |
| Save the current state of the generator. | |
| virtual void | setState (State const &) |
| Restore the generator to a specific state saved with getState(). | |
| virtual std::string | getName () const |
| Get the name of this generator. | |
| RD * | operator-> () |
| Direct access to the underlying distribution. | |
| virtual void | setSeed (SeedType seed)=0 |
| Set the generator seed. | |
| virtual void | setState (State const &state)=0 |
| Set the generator state. | |
Random distribution wrapper, implementing the random distribution interface. These generics provide a uniform interface to the underlying distributions and distribution (generator) state data.
|
|
|
|
|
|
|
|||||||||
|
Get the name of this generator.
Implements RandomInterface. |
|
|||||||||
|
Save the current state of the generator. The state can be restored at any time with setState(). Implements RandomInterface. |
|
|||||||||
|
Direct access to the underlying distribution. Using the distribution directly provides slightly faster access and distribution-specific methods. |
|
|||||||||
|
Sample the distribution.
Implements RandomDistributionInterface. |
|
|
Set the generator seed.
Implemented in RandomNumberGenerator< rng::Taus2 >. |
|
||||||||||
|
Reseed the random number generator.
|
|
|
Set the generator state.
Implemented in RandomNumberGenerator< rng::Taus2 >. |
|
||||||||||
|
Restore the generator to a specific state saved with getState(). The subsequent random numbers will be identical to the sequence following the corresponding getState() call. |
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:42 2003, using Doxygen 1.2.18. |