napf.base.KDT.query#
- KDT.query(queries, nthread=None)[source]#
scipy-like KDTree query call. Same as knn_search(queries, 1, nthreads)
- Parameters:
queries ((m, d) np.ndarray) – Data type will be casted to the same type as tree_data.
nthread (int) – Default is None and will use self.nthread.
- Returns:
distances_and_ids –
- ((m, 1) np.ndarray - double dists,)
(m, 1) np.ndarray - uint ids)
- Return type:
tuple