Nearest neighbor locator.
Class for finding the neighbors of a points within a given distance.
| Parameters : | data : array_like, (n_sample, n_dimensions)
leafsize : int
algorithm : ‘kd_tree’ or ‘ball_tree’
|
|---|
Methods
| find_neighbors_and_dists(q, r) | Find all neighbors and distances within a given distance. |
Private methods
| __init__(data[, leafsize, algorithm]) | initalize. |