diameter

0th

Percentile

Diameter of a Window Frame

Computes the diameter of a window

Keywords
spatial
Usage
diameter(w)
Arguments
w
A window, whose diameter will be computed.
Details

It is intended that this function compute the diameter of a window of arbitrary shape, i.e. the maximum distance between any two points in the window. The current implementation just computes the length of the diagonal of the rectangular frame surrounding the window.

The argument w should be a window (an object of class "owin", see owin.object for details) or can be given in any format acceptable to as.owin().

Value

  • The numerical value of the diameter of the window.

See Also

owin, as.owin

Aliases
  • diameter
Examples
w <- owin(c(0,1),c(0,1))
  diameter(w) 
  # returns sqrt(2)
Documentation reproduced from package spatstat, version 1.7-11, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.