Learn R Programming

lgcp (version 1.0)

getCellCounts: getCellCounts function...

Description

getCellCounts function

Usage

getCellCounts(x, y, xgrid, ygrid)

Arguments

x
x-coordinates of events
y
y-coordinates of events
xgrid
x-coordinates of grid centroids
ygrid
y-coordinates of grid centroids

Value

  • The number of observations in each grid cell.

Details

This function is used to count the number of observations falling inside grid cells.