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.

_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$l, lty=2, col="green")
     lines(lims$x,lims$u, lty=2, col="green")
     lines(Kaver(10,25,Strauss(69,0.5,3.5)),  col="red")

