within_area {sim2Dpredictr} | R Documentation |
Determine Whether Lattice Points are Within or Without a Random Set
Description
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.
Usage
within_area(grid.centers, radii, event.xcoord, event.ycoord)
Arguments
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. |
Value
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.