Estimate the pair correlation function.
pcf(X, …)
Either the observed data point pattern,
or an estimate of its
Other arguments passed to the appropriate method.
Either a function value table
(object of class "fv"
, see fv.object
)
representing a pair correlation function,
or a function array (object of class "fasp"
,
see fasp.object
)
representing an array of pair correlation functions.
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
This function is generic, with methods for
the classes "ppp"
, "fv"
and "fasp"
.
If X
is a point pattern (object of class "ppp"
)
then the pair correlation function is estimated using
a traditional kernel smoothing method (Stoyan and Stoyan, 1994).
See pcf.ppp
for details.
If X
is a function value table (object of class "fv"
),
then it is assumed to contain estimates of the Kest
or
Kinhom
).
This routine computes an estimate of pcf.fv
for details.
If X
is a function value array (object of class "fasp"
),
then it is assumed to contain estimates of several Kmulti
or
alltypes
). This routine computes
an estimate of pcf.fasp
for details.
Stoyan, D. and Stoyan, H. (1994) Fractals, random shapes and point fields: methods of geometrical statistics. John Wiley and Sons.
pcf.ppp
,
pcf.fv
,
pcf.fasp
,
Kest
,
Kinhom
,
Kcross
,
Kdot
,
Kmulti
,
alltypes
# NOT RUN {
# ppp object
X <- simdat
# }
# NOT RUN {
p <- pcf(X)
plot(p)
# fv object
K <- Kest(X)
p2 <- pcf(K, spar=0.8, method="b")
plot(p2)
# multitype pattern; fasp object
amaK <- alltypes(amacrine, "K")
amap <- pcf(amaK, spar=1, method="b")
plot(amap)
# }
Run the code above in your browser using DataLab