Performs spatial smoothing of numeric values observed at a set of irregular locations, using the diffusion estimate of the density.
# S3 method for ppp
SmoothHeat(X, sigma, ..., weights=NULL)
Pixel image (object of class "im"
) giving the smoothed
mark value.
Point pattern (object of class "ppp"
)
with numeric marks.
Smoothing bandwidth. A single number giving the equivalent standard deviation of the smoother.
Arguments passed to densityHeat
controlling the estimation of each marginal intensity,
or passed to pixellate.ppp
controlling the pixel resolution.
Optional numeric vector of weights associated with each data point.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Tilman Davies Tilman.Davies@otago.ac.nz and Suman Rakshit.
This is the analogue of the Nadaraya-Watson smoother, using the
diffusion smoothing estimation procedure (Baddeley et al, 2022).
The numerator and denominator of the Nadaraya-Watson smoother are
calculated using densityHeat.ppp
.
Baddeley, A., Davies, T., Rakshit, S., Nair, G. and McSwiggan, G. (2022) Diffusion smoothing for spatial point patterns. Statistical Science 37, 123--142.
Smooth.ppp
for the usual kernel-based
smoother (the Nadaraya-Watson smoother)
and densityHeat
for the diffusion estimate of density.
plot(SmoothHeat(longleaf, 10))
Run the code above in your browser using DataLab