dimredtools.CompressedCoverTree

class dimredtools.CompressedCoverTree
__init__(self: dimredtools_pybind.CompressedCoverTree, x: numpy.ndarray[numpy.float64[m, n], flags.c_contiguous], base: float = 1.3, metric: str = 'euclidean') None
query(self: dimredtools_pybind.NearestNeighbors, point: numpy.ndarray[numpy.float64[1, n]], k: int, sort_results: bool = True) Tuple[numpy.ndarray[numpy.float64[1, n]], numpy.ndarray[numpy.int32[1, n]]]

Retrieves the k-nearest neighbors for the query point.

query_radius(self: dimredtools_pybind.NearestNeighbors, point: numpy.ndarray[numpy.float64[1, n]], r: float, sort_results: bool = False) Tuple[numpy.ndarray[numpy.float64[1, n]], numpy.ndarray[numpy.int32[1, n]]]

Retrieves all the neighbors of the query point in the specified radius.