

   AAvveerraaggee KK--ffuunnccttiioonnss ffrroomm SSiimmuullaattiioonnss

        Kaver(fs, nsim, ...)

   AArrgguummeennttss::

         fs: full scale for K-fn

       nsim: number of simulations

        ...: arguments to simulate one point process object

   VVaalluuee::

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

   SSeeee AAllssoo::

        `Kfn', `Kenvl'

   EExxaammppllees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")

