View source: R/HaltonFunctions.r
where2Start | R Documentation |
This is a function to find which Halton Box the initial BAS point from the Master Sample falls into and thus use it to order the remaining boxes based on the initial. It also helps us tracks the master sample index as we skip boxes that have no resource.
where2Start(J = c(1, 1), seeds = c(0, 0), bases = c(2, 3), boxes = NULL)
J |
Definition for the number of grid cells of Halton frame. |
seeds |
Master Sample random seed. |
bases |
Co-prime bases should really always be 2,3 |
boxes |
ordering of boxes that have been clipped to be reordered according to the master sample seed. |
vector of reordered Halton indices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.