Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bdist.points

Distance to Boundary of Window


Description

Computes the distances from each point of a point pattern to the boundary of the window.

Usage

bdist.points(X)

Arguments

X

A point pattern (object of class "ppp").

Details

This function computes, for each point x[i] in the point pattern X, the shortest distance dist(x[i], W') from x[i] to the boundary of the window W of observation.

If the window Window(X) is of type "rectangle" or "polygonal", then these distances are computed by analytic geometry and are exact, up to rounding errors. If the window is of type "mask" then the distances are computed using the real-valued distance transform, which is an approximation with maximum error equal to the width of one pixel in the mask.

Value

A numeric vector, giving the distances from each point of the pattern to the boundary of the window.

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

data(cells)
  d <- bdist.points(cells)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.