| perimeter {spatstat} | R Documentation |
Computes the perimeter length of a window
perimeter(w)
w |
A window (object of class |
This function computes the perimeter (length of the boundary) of the
window w. If w is a rectangle or a polygonal window,
the perimeter is the sum of the lengths of the edges of w.
If w is a mask, it is first converted to a polygonal window
using as.polygonal, then staircase edges are removed
using simplify.owin, and the perimeter of the resulting
polygon is computed.
A numeric value giving the perimeter length of the window.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
area.owin
diameter.owin,
owin.object,
as.owin
perimeter(square(3))
data(letterR)
perimeter(letterR)
if(spatstat.options("gpclib")) {
if(interactive()) {
print(perimeter(as.mask(letterR)))
} else print(perimeter(as.mask(letterR, dimyx=32)))
}