Kaver                package:spatial                R Documentation

_A_v_e_r_a_g_e _K-_f_u_n_c_t_i_o_n_s _f_r_o_m _S_i_m_u_l_a_t_i_o_n_s

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

     Forms the average of a series of (usually simulated) K-functions.

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

     Kaver(fs, nsim, ...)

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

      fs: full scale for K-fn 

    nsim: number of simulations 

     ...: arguments to simulate one point process object 

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

     list with components 'x' and 'y' of the average K-fn on L-scale.

_R_e_f_e_r_e_n_c_e_s:

     Ripley, B. D. (1981) _Spatial Statistics._ Wiley.

     Venables, W. N. and Ripley, B. D. (2002) _Modern Applied
     Statistics with S._ Fourth edition.  Springer.

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

     'Kfn', 'Kenvl'

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

     towns <- ppinit("towns.dat")
     par(pty="s")
     plot(Kfn(towns, 40), type="b")
     plot(Kfn(towns, 10), type="b", xlab="distance", ylab="L(t)")
     for(i in 1:10) lines(Kfn(Psim(69), 10))
     lims <- Kenvl(10,100,Psim(69))
     lines(lims$x,lims$lower, lty=2, col="green")
     lines(lims$x,lims$upper, lty=2, col="green")
     lines(Kaver(10,25,Strauss(69,0.5,3.5)),  col="red")

