Query points. Parameters ---------- points: ndarray of shape (n_points, n_coordinates) Two-dimensional array of points/samples (rows) and their corresponding coordinate labels (columns) to query. Returns ------- distances : nd
(self, points: np.ndarray)
| 39 | |
| 40 | @abc.abstractmethod |
| 41 | def query(self, points: np.ndarray) -> tuple[np.ndarray, np.ndarray]: |
| 42 | """Query points. |
| 43 | |
| 44 | Parameters |
| 45 | ---------- |
| 46 | points: ndarray of shape (n_points, n_coordinates) |
| 47 | Two-dimensional array of points/samples (rows) and their |
| 48 | corresponding coordinate labels (columns) to query. |
| 49 | |
| 50 | Returns |
| 51 | ------- |
| 52 | distances : ndarray of shape (n_points) |
| 53 | Distances to the nearest neighbors. |
| 54 | indices : ndarray of shape (n_points) |
| 55 | Indices of the nearest neighbors in the array of the indexed |
| 56 | points. |
| 57 | """ |
| 58 | ... |
| 59 | |
| 60 | def equals(self, other: Self) -> bool: |
| 61 | """Check equality with another TreeAdapter of the same kind. |