random
package provides an interface to the dieharder suite
of random number generators.
"dieharder"(rng="mt19937", test="diehard_runs", psamples=100, seed=0, verbose=FALSE, inputfile="", ntuple=5) "print"(x, ...) "summary"(object, ...) "plot"(x, ...) dieharderGenerators() dieharderTests()
file_input
and
file_input_raw
generators.dieharder
, which inherits from the class
htest
commonly used for test statistics is returned. It
contains the members
psamples
tests of test
using draws from rng
dieharder
librarydieharder
librarydieharderGenerators()
function. Entries with
id
below 200 are from the GNU Scientific Library, entries with
id
greater or equal to 200 and less than 400 are from Dieharder itself,
entries with id
greater or equal to 400 and less than 500 are from GNU R,
entries with id
greater or equal to 500 and less than 600 are
hardware-based (which is system-dependent), and entries with
id
greater or equal to 600 are user-contributed. The current list of tests can be generated dynamicall using the
dieharderTests()
function.
dieharder
source code and website
at http://www.phy.duke.edu/~rgb/General/dieharder.php.
## need to set this for the example to pass the R CMD check test
.dieharder.generators <<- dieharderGenerators()
dh <- dieharder(41, 15, seed=12345) # randu and diehard_runs
dh
summary(dh)
plot(dh)
Run the code above in your browser using DataCamp Workspace