#include <RandCache.h>
Public Types | |
| typedef WFMath::MTRand::uint32 | uint32 |
| Unsigned 32bit integer. | |
|
typedef std::vector< uint32 > ::size_type | size_type |
| Size type of std::vector. | |
Public Member Functions | |
| RandCache (uint32 seed, Ordering *o) | |
| Constructor. | |
| RandCache (uint32 *seed, uint32 seed_len, Ordering *o) | |
| Constructor. | |
| double | operator() (int x, int y) |
| Retrieve a random value associated with parameters. | |
Private Attributes | |
| WFMath::MTRand | m_rand |
| Source random number generator. | |
| std::vector< uint32 > | m_cache |
| Store for the cache of values. | |
| Ordering * | m_ordering |
| Ordering object that defines the ordering of the cache. | |
Classes | |
| struct | Ordering |
| Interface to define the ordering of the random number cache. More... | |
Constructor.
| seed | the random seed value for generated numbers. | |
| o | the ordering object that defines the sequence generated. |
Constructor.
| seed | the random seed block for generated numbers. | |
| seed_len | the length of the seed block. | |
| o | the ordering object that defines the sequence generated. |
| double RandCache::operator() | ( | int | x, | |
| int | y | |||
| ) | [inline] |
1.5.6