MTToolBox
0.2.10
|
Algorithm that search tempering parameters to improve dimension of equi-distribution of output of pseudo random number generator. More...
#include <AlgorithmTempering.hpp>
Public Member Functions | |
virtual | ~AlgorithmTempering () |
Virtual destructor (always required) More... | |
virtual int | operator() (TemperingCalculatable< U, V > &rand, bool verbose=false)=0 |
Search tempering parameters. More... | |
virtual bool | isLSBTempering () const |
Shows if searching tempering parameters is from LSBs. More... | |
Algorithm that search tempering parameters to improve dimension of equi-distribution of output of pseudo random number generator.
U | type of output of pseudo random number generator, for example, uint32_t. Only unsigned numbers are allowed. |
V | type of parameter generator |
|
inlinevirtual |
Virtual destructor (always required)
|
inlinevirtual |
Shows if searching tempering parameters is from LSBs.
Reimplemented in MTToolBox::AlgorithmBestBits< U, V >, and MTToolBox::AlgorithmPartialBitPattern< U, V, bit_len, param_num, try_bit_len, step, lsb >.
Referenced by MTToolBox::AlgorithmReducibleRecursionAndTempering< U, G >::search(), and MTToolBox::AlgorithmRecursionAndTempering< U, V >::search().
|
pure virtual |
Search tempering parameters.
Searched parameters are set to rand. This process may consume large CPU time.
rand | pseudo random number generator |
verbose | if true output redundant messages. |
Implemented in MTToolBox::AlgorithmBestBits< U, V >, and MTToolBox::AlgorithmPartialBitPattern< U, V, bit_len, param_num, try_bit_len, step, lsb >.