Description Usage Arguments Details Value Author(s) See Also Examples

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

1 2 | ```
areaGain(u, X, r, ..., W=as.owin(X), exact=FALSE,
ngrid=spatstat.options("ngrid.disc"))
``` |

`u` |
Coordinates of the centre of the disc of interest.
A vector of length 2.
Alternatively, a point pattern (object of class |

`X` |
Locations of the centres of other discs.
A point pattern (object of class |

`r` |
Disc radius, or vector of disc radii. |

`...` |
Arguments passed to |

`W` |
Window (object of class |

`exact` |
Choice of algorithm.
If |

`ngrid` |
Integer. Number of points in the square grid used to compute
the discrete approximation, when |

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`

.
This area is important in some calculations related to
the area-interaction model `AreaInter`

.

If `u`

is a point pattern and `r`

is a vector,
the result is a matrix, with one row for each point in `u`

and one column for each entry of `r`

. The `[i,j]`

entry
in the matrix is the area of that part of the disc of radius
`r[j]`

centred at the location `u[i]`

that is
*not* covered by any of the discs of radius `r[j]`

centred at the points of the pattern `X`

.

If `W`

is not `NULL`

, then the areas are computed only
inside the window `W`

.

A matrix with one row for each point in `u`

and one column for each value in `r`

.

and \rolf

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.