gridInWindow: gridInWindow function

View source: R/lgcpMethods.R

gridInWindowR Documentation

gridInWindow function

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

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


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.