NoRand() leaves the points as they are. QMCShift() adds one uniform
random shift modulo 1 to every point (QuasiMonteCarlo's Shift, renamed
because Shift() is the clock operator of ModelingToolkit).
OwenScramble(), MatousekScramble() and DigitalShift() scramble the
base base digits of point sets of base^m points: nested uniform
permutations, a random linear matrix scramble plus digital shift, and a
digital shift alone. Digits beyond the first m of the pad digits are
drawn at random.
Usage
NoRand()
QMCShift(rng = NULL)
OwenScramble(base, pad = 32L, rng = NULL)
MatousekScramble(base, pad = 32L, rng = NULL)
DigitalShift(base, pad = 32L, rng = NULL)
randomize(x, R)Examples
x <- qmc_sample(16, 2, SobolSample())
set.seed(1)
randomize(x, OwenScramble(base = 2))
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7]
#> [1,] 0.14422531 0.7896313 0.7196793 0.4468170 0.3217259 0.5565939 0.8929708
#> [2,] 0.02713405 0.7172157 0.4388541 0.8410786 0.2959511 0.9788447 0.2179235
#> [,8] [,9] [,10] [,11] [,12] [,13] [,14]
#> [1,] 0.06675864 0.00156212 0.9687923 0.5744399 0.3071467 0.3999193 0.6335351
#> [2,] 0.59459063 0.43153416 0.8069080 0.1037498 0.6569470 0.1537799 0.5016642
#> [,15] [,16]
#> [1,] 0.8456023 0.2205826
#> [2,] 0.3361491 0.8867322