locan.analysis.ripley#
Compute Ripley’s k function.
Spatial clustering of localization data is characterized by Ripley’s k or related l and h functions [1].
Ripley’s k function is computed for 2D and 3D data for a series of radii as described in [2] in order to provide evidence for deviations from a spatially homogeneous Poisson process (i.e. complete spatial randomness, CSR). Ripley’ s k function is estimated by summing all points or over test points being a random subset of all points:
here \(p_i\) is the \(i^{th}\) point of n test points, \(N_{p_{i}}\) is the number of points within the region of radius r around \(p_{i}\), and \(\lambda\) is the density of all points.
We follow the definition of l and h functions in [2]. Ripley’s l function is:
And Ripley’s h function is:
References
Classes
|
Compute Ripley's H function for two- or three-dimensional data at the given radii. |
|
Compute Ripley's K function for two- or three-dimensional data at the given radii. |
|
Compute Ripley's L function for two- or three-dimensional data at the given radii. |
Functions
|
Provide plot of results as |