Skip to contents

This function generates random regions on a unit square.

Usage

RandomRegionWindow(nRegion = 3, nGrid = 20, seed = NULL)

Arguments

nRegion

nRegion is the No. of regions (e.g. nRegion=3)

nGrid

nGrid is the No. of spots on x and y.

seed

Random seed.

Value

window:

The window of each region.

area:

Area proportion of the region in the window.