areadiff {spatstat}R Documentation

Difference of Disc Areas

Description

Computes the area of that part of a disc that is not covered by other discs.

Usage

   areadiff(u, X, r, ngrid=256)

Arguments

u Coordinates of the centre of the disc. A vector of length 2.
X Locations of the centres of other discs. A point pattern (object of class "ppp").
r Disc radius.
ngrid Dimensions of the ngrid * ngrid array of test points that will be used to estimate the uncovered area.

Details

This function computes the area of that part of the disc of radius r centred at the location u that is not covered by any of the discs of radius r centred at the points of the pattern X.

Value

A single number (the uncovered area)

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

AreaInter

Examples

   data(cells)
   u <- c(0.5,0.5)
   areadiff(u, cells, 0.1)

[Package spatstat version 1.16-0 Index]