#include "mdapi/mdtypes.h"
Go to the source code of this file.
Classes | |
| struct | Random_tag |
| Random number class. More... | |
Typedefs | |
| typedef long long | int64 |
| typedef Random_tag | Random |
| Random number class. | |
Functions | |
| void | random_init (Random *r) |
| Constructor. | |
| void | random_initseed (Random *r, unsigned long seed) |
| Constructor. | |
| void | random_split (Random *r, int iStream, int numStreams) |
| Split streams. | |
| double | random_uniform (Random *r) |
| Uniform distribution. | |
| double | random_gaussian (Random *r) |
| Gaussian distribution. | |
| MD_Dvec | random_gaussian_vector (Random *r) |
| Vector of Gaussian random numbers. | |
| long | random_integer (Random *r) |
| Random integer. | |
Random_tag class is a linear congruential generator for a pseudo-random number stream. The functional portion of the code, originally by Martin Birgmeier, is taken from NAMD. It has been turned into a class to provide thread-safe use.
|
|
Random number class. Members should be treated as private. Stores random sequence state. |
|
|
Gaussian distribution. Determine a random number from a standard Gaussian distribution.
|
|
|
Vector of Gaussian random numbers. Generate a 3-vector of Gaussian random numbers.
|
|
|
Constructor. Initializes random sequence using a seed of 0. |
|
||||||||||||
|
Constructor.
|
|
|
Random integer. Generate a random integer.
|
|
||||||||||||||||
|
Split streams.
numStreams number of streams and take stream numbered iStream. |
|
|
Uniform distribution. Determine a random number uniformly distributed between 0 and 1.
|
1.3.9.1