#include <Random.h>
Public Methods | |
| std::string | getName () const |
| Get the name of this distribution. | |
| Gauss (double mean=0.0, double sigma=0.0) | |
| Construct a new distribution. | |
| void | setDistribution (double mean, double sigma) |
| Set the mean value and standard deviation of the distribution. | |
| double | getMean () const |
| Get the mean value of the distribution. | |
| double | getSigma () const |
| Get the standard deviation of the distribution. | |
| double | sample () |
| Sample the distribution. | |
| void | setSeed (unsigned long int seed) |
| Reseed the underlying random number generator. | |
| void | getState (State &) const |
| Save the current state of the distribution. | |
| void | setState (State const &) |
| Restore the underlying generator to a specific state saved with getState(). | |
|
||||||||||||
|
Construct a new distribution.
|
|
|
Get the mean value of the distribution.
|
|
|
Get the name of this distribution.
|
|
|
Get the standard deviation of the distribution.
|
|
|
Save the current state of the distribution. The state can be restored at any time with setState(). Both the state of the underlying random number generator and the distribution parameters (mean, sigma) are saved. |
|
|
Sample the distribution.
|
|
||||||||||||
|
Set the mean value and standard deviation of the distribution.
|
|
|
Reseed the underlying random number generator.
|
|
|
Restore the underlying generator to a specific state saved with getState(). The subsequent samples of the distribution 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:43 2003, using Doxygen 1.2.18. |