knn {lidR} | R Documentation |
Search Nearest Neighbors
Description
Fast parallelized k-neareast neighbor searching algorithms for point cloud in LAS format
Usage
knn(data, k = 10)
knnx(data, query, k = 10)
Arguments
data |
LAS object for input point cloud |
k |
number of nearest neighbors to search. |
query |
LAS object for query locations |
Value
a list contains:
**nn.index** an n x k matrix for the nearest neighbor indice.
**nn.dist** an n x k matrix for the nearest neighbor Euclidean distances.
[Package lidR version 4.2.1 Index]