Kmark {spatstat.explore} | R Documentation |
Mark-Weighted K Function
Description
Estimates the mark-weighted function
of a marked point pattern.
Usage
Kmark(X, f = NULL, r = NULL,
correction = c("isotropic", "Ripley", "translate"), ...,
f1 = NULL, normalise = TRUE, returnL = FALSE, fargs = NULL)
markcorrint(X, f = NULL, r = NULL,
correction = c("isotropic", "Ripley", "translate"), ...,
f1 = NULL, normalise = TRUE, returnL = FALSE, fargs = NULL)
Arguments
X |
The observed point pattern.
An object of class |
f |
Optional. Test function |
r |
Optional. Numeric vector. The values of the argument |
correction |
A character vector containing any selection of the
options |
... |
Ignored. |
f1 |
An alternative to |
normalise |
If |
returnL |
Compute the analogue of the K-function if |
fargs |
Optional. A list of extra arguments to be passed to the function
|
Details
The functions Kmark
and markcorrint
are identical.
(Eventually markcorrint
will be deprecated.)
The mark-weighted function
of a marked point process (Penttinen et al, 1992)
is a generalisation of Ripley's
function, in which the contribution
from each pair of points is weighted by a function of their marks.
If the marks of the two points are
then
the weight is proportional to
where
is a specified test function.
The mark-weighted function is defined so that
where
for any spatial location taken to be a typical point of
the point process
. Here
is the
euclidean distance between
and
, so that the sum
is taken over all random points
that lie within a distance
of the point
. The function
is
the unnormalised mark-weighted
function.
To obtain
we standardise
by dividing by
, the expected value of
when
and
are
independent random marks with the same distribution as the marks in
the point process.
Under the hypothesis of random labelling, the
mark-weighted function
is equal to Ripley's
function,
.
The mark-weighted function is sometimes called the
mark correlation integral because it is related to the
mark correlation function
and the pair correlation function
by
See markcorr
for a definition of the
mark correlation function.
Given a marked point pattern X
,
this command computes edge-corrected estimates
of the mark-weighted function.
If
returnL=FALSE
then the estimated
function is returned;
otherwise the function
is returned.
Value
An object of class "fv"
(see fv.object
).
Essentially a data frame containing numeric columns
r |
the values of the argument |
theo |
the theoretical value of |
together with a column or columns named
"iso"
and/or "trans"
,
according to the selected edge corrections. These columns contain
estimates of the mark-weighted function
obtained by the edge corrections named (if
returnL=FALSE
).
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner rolfturner@posteo.net
References
Penttinen, A., Stoyan, D. and Henttonen, H. M. (1992) Marked point processes in forest statistics. Forest Science 38 (1992) 806-824.
Illian, J., Penttinen, A., Stoyan, H. and Stoyan, D. (2008) Statistical analysis and modelling of spatial point patterns. Chichester: John Wiley.
See Also
markcorr
to estimate the mark correlation function.
Examples
# CONTINUOUS-VALUED MARKS:
# (1) Spruces
# marks represent tree diameter
# mark correlation function
ms <- Kmark(spruces)
plot(ms)
# (2) simulated data with independent marks
X <- rpoispp(100)
X <- X %mark% runif(npoints(X))
Xc <- Kmark(X)
plot(Xc)
# MULTITYPE DATA:
# Hughes' amacrine data
# Cells marked as 'on'/'off'
M <- Kmark(amacrine, function(m1,m2) {m1==m2},
correction="translate")
plot(M)