hardcoredist | R Documentation |
Extract or compute the hard core distance of a point process model.
hardcoredist(x, ...) ## S3 method for class 'fii' hardcoredist(x, ..., epsilon = 0) ## S3 method for class 'ppm' hardcoredist(x, ..., epsilon = 0)
x |
An object representing a point process model
(class |
... |
Additional arguments passed to methods. |
epsilon |
Tolerance for defining the hard core. |
A point process model has a hard core distance h
if it is impossible for two random points to lie closer than the
distance h
apart.
The function hardcoredist
is generic, with methods for
objects of class "ppm"
(point process models)
and "fii"
(fitted point process interactions).
It extracts or computes the hard core distance.
If epsilon
is specified, then the code calculates the
largest distance at which the interaction factor is smaller than
epsilon
, implying that points are unlikely to occur closer
than this distance.
The result is zero if the model does not have a hard core distance.
A single numeric value, or for multitype point processes, a numeric matrix giving the hard core distances for each pair of types of points.
.
m <- ppm(cells~1, Hardcore()) hardcoredist(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.