Last chance! 50% off unlimited learning
Sale ends in
Estimates the pair correlation function of a point pattern, given an estimate of the K function.
# S3 method for fv
pcf(X, …, method="c")
An estimate of the "fv"
.
Arguments controlling the smoothing spline
function smooth.spline
.
Letter "a"
, "b"
, "c"
or "d"
indicating the
method for deriving the pair correlation function from the
K
function.
A function value table
(object of class "fv"
, see fv.object
)
representing a pair correlation function.
Essentially a data frame containing (at least) the variables
the vector of values of the argument
vector of values of
The pair correlation function of a stationary point process is
Kest
for information
about
We also apply the same definition to
other variants of the classical Kcross
, Kdot
) and the
inhomogeneous Kinhom
).
For all these variants, the benchmark value of
This routine computes an estimate of pcf
for the class "fv"
.
The argument X
should be an estimated "fv"
,
see fv.object
).
This object should be the value returned by
Kest
, Kcross
, Kmulti
or Kinhom
.
The smoothing spline operations are performed by
smooth.spline
and predict.smooth.spline
from the modreg
library.
Four numerical methods are available:
"a" apply smoothing to
"b" apply smoothing to
"c" apply smoothing to
"d" apply smoothing to
Method "c"
seems to be the best at
suppressing variability for small values of "b"
which effectively
constrains "a"
seems
comparatively unreliable.
Useful arguments to control the splines
include the smoothing tradeoff parameter spar
and the degrees of freedom df
. See smooth.spline
for details.
Stoyan, D, Kendall, W.S. and Mecke, J. (1995) Stochastic geometry and its applications. 2nd edition. Springer Verlag.
Stoyan, D. and Stoyan, H. (1994) Fractals, random shapes and point fields: methods of geometrical statistics. John Wiley and Sons.
pcf
,
pcf.ppp
,
Kest
,
Kinhom
,
Kcross
,
Kdot
,
Kmulti
,
alltypes
,
smooth.spline
,
predict.smooth.spline
# NOT RUN {
# univariate point pattern
X <- simdat
# }
# NOT RUN {
K <- Kest(X)
p <- pcf.fv(K, spar=0.5, method="b")
plot(p, main="pair correlation function for simdat")
# indicates inhibition at distances r < 0.3
# }
Run the code above in your browser using DataLab