Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
|
Hardware random number generating class. More...
#include <random.hpp>
Public Member Functions | |
GenerateHR () | |
Default constructor. | |
~GenerateHR () | |
Destructor. | |
GenerateHR (const GenerateHR &old) | |
Copy constructor. More... | |
GenerateHR (GenerateHR &&old) | |
Move constructor. More... | |
GenerateHR & | operator= (const GenerateHR &old)=default |
Copy assignment operator. More... | |
GenerateHR & | operator= (GenerateHR &&old)=default |
Move assignment. More... | |
volatile uint64_t | ranInt () |
Generate a random 64-bit unsigned integer. More... | |
Public Member Functions inherited from sampFiles::Generate | |
virtual | ~Generate () |
Protected destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from sampFiles::Generate | |
Generate () | |
Protected default constructor. | |
Generate (const Generate &old) | |
Protected copy constructor. More... | |
Generate (Generate &&old) | |
Protected move constructor. More... | |
Generate & | operator= (const Generate &old)=default |
Protected copy assignment operator. More... | |
Generate & | operator= (Generate &&old)=default |
Protected move assignment. More... | |
Hardware random number generating class.
Generates random deviates from a number of distributions, using hardware random numbers (RDRAND processor instruction). Health of the RDRAND generator is tested every time a new number is required. Throws a string
object "RDRAND_failed" if the test fails. The implementation of random 64-bit integer generation follows Intel's suggestions.
|
inline |
Copy constructor.
[in] | old | object to copy |
|
inline |
Move constructor.
[in] | old | object to move |
|
default |
Copy assignment operator.
[in] | old | object to copy |
|
default |
Move assignment.
[in] | old | object to move |
|
virtual |
Generate a random 64-bit unsigned integer.
Monitors the health of the CPU random number generator and throws a string
object "RDRAND_failed" if a failure is detected after ten tries.
Implements sampFiles::Generate.