runifpoint             package:spatstat             R Documentation

_G_e_n_e_r_a_t_e _N _U_n_i_f_o_r_m _R_a_n_d_o_m _P_o_i_n_t_s

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

     Generate a random point pattern containing n independent uniform
     random points.

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

      runifpoint(n, win=owin(c(0,1),c(0,1)), giveup=1000)

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

       n: Number of points. 

     win: Window in which to simulate the pattern. An object of class
          `"owin"' or something acceptable to `as.owin'. 

  giveup: Number of attempts in the rejection method after which the
          algorithm should stop trying to generate new points. 

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

     If `win' is a rectangle then this algorithm simply generates n
     independent random points uniformly distributed in the rectangle,
     by assigning uniform random values to their cartesian coordinates.

     If `win' is not a rectangle, the algorithm uses the rejection
     method. It finds a rectangle enclosing the window, generates
     points in this rectangle, and tests whether they fall in the
     desired window. It gives up after `giveup' consecutive failures
     have occurred.

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

     The simulated point pattern (an object of class `"ppp"').

_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:

     `ppp.object', `owin.object'

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

      # 100 random points in the unit square
      pp <- runifpoint(100)

