powered by
Actually computes \(L = \sqrt{K/\pi}\).
Kfn(pp, fs, k=100)
A list with components
vector of distances
vector of L-fn values
number of distances returned -- may be less than k if fs is too large
k
fs
minimum distance between pair of points
maximum deviation from L(t) = t
a list such as a pp object, including components x and y
x
y
full scale of the plot
number of regularly spaced distances in (0, fs)
relies on the domain D having been set by ppinit or ppregion.
ppinit
ppregion
Ripley, B. D. (1981) Spatial Statistics. Wiley.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
ppinit, ppregion, Kaver, Kenvl
Kaver
Kenvl
towns <- ppinit("towns.dat") par(pty="s") plot(Kfn(towns, 10), type="s", xlab="distance", ylab="L(t)")
Run the code above in your browser using DataLab