Compute a weighted median or weighted quantile of spatial data.
SpatialMedian(X, ...) SpatialQuantile(X, prob = 0.5, ...)
A spatial data object.
Probability for which the quantile is required. A single numeric value between 0 and 1. Default is to calculate the median.
Further arguments passed to methods.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au.
The functions SpatialMedian
and SpatialQuantile
are generic. They calculate spatially weighted medians
and quantiles of spatial data. The details depend on the class of
X
.
There are methods for spatial point patterns (class "ppp"
)
and possibly for other objects.
Methods SpatialMedian.ppp
, SpatialQuantile.ppp
.
Smooth
for the spatially weighted average.