Description Usage Details Value Author(s) References See Also Examples
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.
1 | maxU()
|
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.
10e7 or 100,000,000
Trent McDonald
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.
bas.line
, bas.point
, bas.polygon
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.