Learn R Programming

TreeLS (version 2.0.2)

ptm.knn: Point metrics algorithm: K Nearest Neighbors metrics

Description

This function is meant to be used inside fastPointMetrics. It calculates metrics for every point using its nearest neighbors (KNN).

Usage

ptm.knn(k = 20, r = 0)

Arguments

k

numeric - number of nearest points to search per neighborhood.

r

numeric - search radius limit. If r == 0, no distance limit is applied.