pcfinhom(X, lambda = NULL, ..., r = NULL, kernel = "epanechnikov", bw = NULL, stoyan = 0.15, correction = c("translate", "Ripley"), sigma = NULL, varcov = NULL)
"ppp"
).X
,
a pixel image (object of class "im"
) giving the
intensity values at all locatiodensity.default
.density.default
.density.default
.density.ppp
to control the smoothing bandwidth, when lambda
is
estimated by kernel smoothing."fv"
).
Essentially a data frame containing the variablesThe best intuitive interpretation is the following: the probability $p(r)$ of finding two points at locations $x$ and $y$ separated by a distance $r$ is equal to $$p(r) = \lambda(x) lambda(y) g(r) \,{\rm d}x \, {\rm d}y$$ where $\lambda$ is the intensity function of the point process. For a Poisson point process with intensity function $\lambda$, this probability is $p(r) = \lambda(x) \lambda(y)$ so $g_{\rm inhom}(r) = 1$.
The inhomogeneous pair correlation function
is related to the inhomogeneous $K$ function through
$$g_{\rm inhom}(r) = \frac{K'_{\rm inhom}(r)}{2\pi r}$$
where $K'_{\rm inhom}(r)$
is the derivative of $K_{\rm inhom}(r)$, the
inhomogeneous $K$ function. See Kinhom
for information
about $K_{\rm inhom}(r)$.
The command pcfinhom
estimates the inhomogeneous
pair correlation using a modified version of
the algorithm in pcf.ppp
.
pcf
,
pcf.ppp
,
Kinhom
data(residualspaper)
X <- residualspaper$Fig4b
plot(pcfinhom(X, stoyan=0.2, sigma=0.1))
Run the code above in your browser using DataLab