napf.base.KDT.rknn_search#
- KDT.rknn_search(queries, radius, n_nearest, nthread=None)[source]#
Searches for k-nearest neighbors within the radius. With insufficient neighbors, rest of the return values will have dummy filled in - they will be the maximum value of each data type. If the dtype is signed, it will have a negative value.
- Parameters:
queries ((m, d) np.ndarray)
radius (float)
n_nearest (int)
nthread (int)
- Returns:
ids_and_distances –
- ((m, 1) np.ndarray - uint ids,
(m, 1) np.ndarray - double dists)
- Return type:
tuple