#include <helpers.h>
Definition at line 36 of file helpers.h.
| tesseract::TRand::TRand |
( |
| ) |
|
|
default |
| int32_t tesseract::TRand::IntRand |
( |
| ) |
|
|
inline |
| void tesseract::TRand::set_seed |
( |
uint64_t |
seed | ) |
|
|
inline |
| void tesseract::TRand::set_seed |
( |
const std::string & |
str | ) |
|
|
inline |
Definition at line 44 of file helpers.h.
45 std::hash<std::string> hasher;
46 set_seed(static_cast<uint64_t>(hasher(str)));
void set_seed(uint64_t seed)
| double tesseract::TRand::SignedRand |
( |
double |
range | ) |
|
|
inline |
Definition at line 55 of file helpers.h.
56 return range * 2.0 *
IntRand() / INT32_MAX - range;
| double tesseract::TRand::UnsignedRand |
( |
double |
range | ) |
|
|
inline |
The documentation for this class was generated from the following file: