a wrapper to table_gen to make it look like a rand_digit.
More...
#include <exrandom/rand_table.hpp>
|
| template<typename RealType > |
| static RealType | invrealbase () |
| |
a wrapper to table_gen to make it look like a rand_digit.
- Examples
- tabulate_normals.cpp.
Definition at line 20 of file rand_table.hpp.
◆ rand_table()
| exrandom::rand_table::rand_table |
( |
| ) |
|
|
inline |
The constructor (which initializes the count to 0).
Definition at line 45 of file rand_table.hpp.
◆ operator()()
template<typename Generator >
| uint_t exrandom::rand_table::operator() |
( |
Generator & |
g | ) |
|
|
inline |
- Template Parameters
-
- Parameters
-
| g | the random generator engine. |
- Returns
- the random digit.
Definition at line 52 of file rand_table.hpp.
◆ count()
| long long exrandom::rand_table::count |
( |
| ) |
const |
|
inline |
◆ invrealbase()
template<typename RealType >
| static RealType exrandom::rand_table::invrealbase |
( |
| ) |
|
|
inlinestatic |
- Template Parameters
-
| the | floating point type of the result. |
- Returns
- 1/base as a floating point number.
Definition at line 63 of file rand_table.hpp.
◆ base
| const uint_t exrandom::rand_table::base |
|
static |
◆ min_value
| const uint_t exrandom::rand_table::min_value |
|
static |
The minimum value produced by operator().
Definition at line 29 of file rand_table.hpp.
◆ max_value
| const uint_t exrandom::rand_table::max_value |
|
static |
The maximum value produced by operator().
Definition at line 33 of file rand_table.hpp.
◆ bits
| const int exrandom::rand_table::bits |
|
static |
The number of bits needed to represent a digit.
Definition at line 37 of file rand_table.hpp.
◆ power_of_two
| const bool exrandom::rand_table::power_of_two |
|
static |
The documentation for this class was generated from the following file: