soboltestfunctions | R Documentation |
Some test functions for Sobol sequences
sobol.R(n, d, echo=FALSE)
int2bit(x)
bit2int(x)
bit2unitreal(x)
n |
number of observations. |
d |
dimension of observations. |
echo |
a logical to show some traces. |
x |
an integer to convert in base 2 or its binary representation |
sobol.R
computes Sobol sequences but not using Gray code so points are
not in the same order as in sobol
.
sobol.basic
compute the Sobol sequence in one dimension according to a primitive
polynomial and specified integers m_j
.
int2bit
computes the binary representation of the integer part of a real,
bit2int
computes an integer from its binary representation.
bit2unitreal
computes the radical inverse function in base 2.
a vector of length n
or a matrix for sobol.R
.
Christophe Dutang
Glasserman P., (2003); Monte Carlo Methods in Financial Engineering, Springer. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-0-387-21617-1")}
quasiRNG
for quasi random number generation.
#page 306 of Glassermann
sobol.R(10,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.