Compute local point density at each point of a point set
Usage
local_densities(X, k = NULL)
Value
vector of density value for each point
Arguments
X
point set, a N x D matrix
k
(optional) number of nearest neighbors used (defaults to all points).
Details
Local density is computed as in Ning X, Li F, Tian G, Wang Y (2018)
An efficient outlier removal method for scattered point cloud data.
PLOS ONE 13(8):e0201280. https://doi.org/10.1371/journal.pone.0201280