where2Start: Internal function to find the ordering of the first box...

View source: R/HaltonFunctions.r

where2StartR Documentation

Internal function to find the ordering of the first box according to the random seed.

Description

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.

Usage

where2Start(J = c(1, 1), seeds = c(0, 0), bases = c(2, 3), boxes = NULL)

Arguments

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.

Value

vector of reordered Halton indices.


paul-vdb/DFO-master-sample documentation built on April 5, 2022, 4:35 p.m.