| Lattice Microbes 2.5
    This is for whole cell modeling | 
A random number generator that works for a grid based on the index. More...
#include <XORShift.h>
| Public Member Functions | |
| XORShift (uint32_t seedTop, uint32_t seedBottom) | |
| Create the XORShift random number generator. | |
| virtual | ~XORShift () | 
| Destory the XORShift object. | |
| virtual uint32_t | getRandom () | 
| Get a random integer. | |
| virtual double | getRandomDouble () | 
| Get a random double. | |
| virtual double | getExpRandomDouble () | 
| Get a random exponentially distributed double. | |
| virtual double | getNormRandomDouble () | 
| Get a random normally distributed double. | |
| virtual void | getRandomDoubles (double *rngs, int numberRNGs) | 
| Get a set of random doubles. | |
| virtual void | getExpRandomDoubles (double *rngs, int numberRNGs) | 
| Get a set of random exponentially distributed doubles. | |
| virtual void | getNormRandomDoubles (double *rngs, int numberRNGs) | 
| Get a set of random normally distributed doubles. | |
| Public Member Functions inherited from lm::rng::RandomGenerator | |
| RandomGenerator (uint32_t seedTop, uint32_t seedBottom, Distributions availableDists=(Distributions)(ALL)) | |
| virtual | ~RandomGenerator () | 
| virtual uint64_t | getSeed () | 
| Get the current seed. | |
| Protected Attributes | |
| unsigned long long | state | 
| bool | isNextGaussianValid | 
| double | nextGaussian | 
| Protected Attributes inherited from lm::rng::RandomGenerator | |
| uint64_t | seed | 
| Distributions | availableDists | 
| Additional Inherited Members | |
| Public Types inherited from lm::rng::RandomGenerator | |
| enum | Distributions { NONE = 0x00 , UNIFORM = 0x01 , EXPONENTIAL = 0x02 , NORMAL = 0x04 , ALL = 0xFF } | 
| Types of random number generators that are allowed.  More... | |
A random number generator that works for a grid based on the index.
| lm::rng::XORShift::XORShift | ( | uint32_t | seedTop, | 
| uint32_t | seedBottom ) | 
Create the XORShift random number generator.
| seedTop | Top 32 bits of the random seed | 
| seedBottom | Bottom 32 bits of the random seed | 
| 
 | inlinevirtual | 
Destory the XORShift object.
| 
 | virtual | 
Get a random exponentially distributed double.
Returns an exponentially distributed value.
Implements lm::rng::RandomGenerator.
| 
 | virtual | 
Get a set of random exponentially distributed doubles.
| rngs | Pointer to memory for random numbers | 
| numberRNGs | The size of the rngs variable | 
Reimplemented from lm::rng::RandomGenerator.
| 
 | virtual | 
Get a random normally distributed double.
Returns an normally distributed value.
Implements lm::rng::RandomGenerator.
| 
 | virtual | 
Get a set of random normally distributed doubles.
| rngs | Pointer to memory for random numbers | 
| numberRNGs | The size of the rngs variable | 
Reimplemented from lm::rng::RandomGenerator.
| 
 | virtual | 
Get a random integer.
Implements lm::rng::RandomGenerator.
| 
 | virtual | 
Get a random double.
Returns a float value in the range [0.0 1.0).
Implements lm::rng::RandomGenerator.
| 
 | virtual | 
Get a set of random doubles.
| rngs | Pointer to memory for random numbers | 
| numberRNGs | The size of the rngs variable | 
Reimplemented from lm::rng::RandomGenerator.
| 
 | protected | 
| 
 | protected | 
| 
 | protected |