gridInWindow: gridInWindow function

Description Usage Arguments Value

Description

For the grid defined by x-coordinates, xvals, and y-coordinates, yvals, and an owin object W, this function just returns a logical matrix M, whose [i,j] entry is TRUE if the point(xvals[i], yvals[j]) is inside the observation window.

Usage

1
gridInWindow(xvals, yvals, win, inclusion = "touching")

Arguments

xvals

x coordinates

yvals

y coordinates

win

owin object

inclusion

criterion for cells being included into observation window. Either 'touching' or 'centroid'. The former includes all cells that touch the observation window, the latter includes all cells whose centroids are inside the observation window.

Value

matrix of TRUE/FALSE, which elements of the grid are inside the observation window win


bentaylor1/lgcp documentation built on May 12, 2019, 2:09 p.m.