CAUTION: The following comment is intended for
those who wish to simulate or study statistical
properties of BAS, and want to completely enumerate
the sample space. Don't do this if you are
actually drawing a sample.
To change maxU, redefine maxU() in .GlobalEnv.
For example, maxU <- function() 4
.
There are only 25 possible 2D Halton starts in this case.
Random starts are = (0,1,2,3,4) X (0,1,2,3,4).
In general,
all.possible.starts
= expand.grid(x=0:maxU(),y=0:maxU()))
Number of possible BAS samples is less than or equal to
(maxU()+1)^2
because the first sample point is required to land in a
valid polygon. So, starts that do not land in polygon
are discarded.