diameter              package:spatstat              R Documentation

_D_i_a_m_e_t_e_r _o_f _a _W_i_n_d_o_w _F_r_a_m_e

_D_e_s_c_r_i_p_t_i_o_n:

     Computes the diameter of a window

_U_s_a_g_e:

      diameter(w)

_A_r_g_u_m_e_n_t_s:

       w: A window, whose diameter will be computed.

_D_e_t_a_i_l_s:

     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()'.

_V_a_l_u_e:

     The numerical value of the diameter of the window.

_A_u_t_h_o_r(_s):

     Adrian Baddeley adrian@maths.uwa.edu.au <URL:
     http://www.maths.uwa.edu.au/~adrian/> and Rolf Turner
     rolf@math.unb.ca <URL: http://www.math.unb.ca/~rolf>

_S_e_e _A_l_s_o:

     `owin', `as.owin'

_E_x_a_m_p_l_e_s:

       library(spatstat)
       w <- owin(c(0,1),c(0,1))
       diameter(w) 
       # returns sqrt(2)

