within_area | R Documentation |
Determine whether locations in the image/lattice (from generate.grid
)
are within or without the union of a random set generated by
sim2D_HPPP_coords()
. If the Euclidean distance between a lattice
location and any 'event' is less than the radius about the 'event', then
the location is said to be within the random set. Otherwise, it is without
the random set.
within_area(grid.centers, radii, event.xcoord, event.ycoord)
grid.centers |
Output from |
radii |
A vector of radii values. |
event.xcoord, event.ycoord |
Paired vectors specifying the x- and y- coordinates, respectively, of each 'event' from the Poisson process. |
A data frame with lattice x- and y- coordinates, and a binary vector where 1 indicates the location is within the random set, and 0 indicates the location is without the random set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.