powered by
Compute J, the depth of the Halton lattice, given a population size .
getJ(N, bases = c(2, 3))
Population or frame size (a scalar)
A vector of co-prime Halton bases of length D.
A vector of length 2 containing the exponents of bases that produce a Halton cycle of length B such that n <= B <= N.
This routine returns a largest Halton cycle (i.e., B) such that n <= B <= N. The first few Halton cycles are in Robertson et al. (2018) Web table 1.
# NOT RUN { getJ(62208, c(2,3)) # should equal c(8,5) getJ(72, c(2,3)) # should equal c(3,2) # }
Run the code above in your browser using DataLab