Computes Ripley's isotropic edge correction weights for a point pattern.
edge.Ripley(X, r, W = Window(X), method = c("C", "interpreted"),
maxweight = 100, internal=list())rmax.Ripley(W)
Point pattern (object of class "ppp"
).
Window for which the edge correction is required.
Vector or matrix of interpoint distances for which the edge correction should be computed.
Choice of algorithm. Either "interpreted"
or "C"
.
This is needed only for debugging purposes.
Maximum permitted value of the edge correction weight.
For developer use only.
A numeric vector or matrix.
The function edge.Ripley
computes Ripley's (1977) isotropic edge correction
weight, which is used in estimating the
The function rmax.Ripley
computes the maximum value of
distance
For a single point
The function edge.Ripley
computes this edge correction weight
for each point in the point pattern X
and for each
corresponding distance value in the vector or matrix r
.
If r
is a vector, with one entry for each point in
X
, then the result is a vector containing the
edge correction weights e(X[i], r[i])
for each i
.
If r
is a matrix, with one row for each point in X
,
then the result is a matrix whose i,j
entry gives the
edge correction weight e(X[i], r[i,j])
.
For example edge.Ripley(X, pairdist(X))
computes all the
edge corrections required for the
If any value of the edge correction weight exceeds maxwt
,
it is set to maxwt
.
The function rmax.Ripley
computes the smallest distance W
, such that the circle does not intersect the
interior of W
.
Ripley, B.D. (1977) Modelling spatial patterns (with discussion). Journal of the Royal Statistical Society, Series B, 39, 172 -- 212.
# NOT RUN {
v <- edge.Ripley(cells, pairdist(cells))
rmax.Ripley(Window(cells))
# }
Run the code above in your browser using DataLab