A function that returns the maximum integer used to construct the random-start Halton sequences. By redefining this function and placing in the .GlobalEnv environment, the user can change the maximum integer and hence the number of possible BAS samples.
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.
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).
Number of possible BAS samples is less than or equal to
because the first sample point is required to land in a
valid polygon. So, starts that do not land in polygon
10e7 or 100,000,000
Robertson, B.L., J. A. Brown, T. L. McDonald, and P. Jaksons (2013) "BAS: Balanced Acceptance Sampling of Natural Resources", Biometrics, v69, p. 776-784.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.