intensitysph: Homogeneous Intensity of a Dataset

View source: R/intensitysph.R

intensitysphR Documentation

Homogeneous Intensity of a Dataset

Description

A function for computing the intensity of a spatial dataset or spatial point process model, under the assumption of homogeneity.

Usage

 intensitysph(X, win, ...)

Arguments

X

The locations of the points in the point pattern. An object of class sp2 or sp3, or a 2 column matrix with locations given in spherical coordinates, or a 3 column matrix with locations given in Cartesian coordinates.

win

The window. An object of type sphwin. Only required if X is not an object of class sp2 or sp3.

...

Extra information. Not used now, but probably needed when I expand this to other point processes

Details

Estimates the intensity by dividing the number of points in X by the area of win.

Value

A numeric.

Note

This function is the analogue for point processes on the sphere of the function intensity in spatstat, which is the corresponding function for point processes in R^2. Hence elements of this help page have been taken from intensity with the permission of A. J. Baddeley. This enables the information on this help page to be consistent with that for intensity. It is hoped that this will minimise or remove any confusion for users of both spatstat and spherstat.

Author(s)

Tom Lawrence <email:tjlawrence@bigpond.com>

See Also

rpoispp.sphwin

Examples

sph <- sphwin(type="sphere")
rps <- rpoispp.sphwin(win=sph, lambda=10)
intensitysph(X=rps, win=sph)

baddstats/spherstat documentation built on Feb. 6, 2023, 1:45 a.m.