Fast parallelized k-neareast neighbor searching algorithms for point cloud in LAS format
knn(data, k = 10)knnx(data, query, k = 10)
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.
LAS object for input point cloud
number of nearest neighbors to search.
LAS object for query locations