xoak.SklearnBallTreeAdapter

xoak.SklearnBallTreeAdapter#

class xoak.SklearnBallTreeAdapter(points, options)[source]#

sklearn.neighbors.BallTree adapter for NDPointIndex.

__init__(points, options)[source]#
Parameters:

points (ndarray of shape (n_points, n_coordinates)) – Two-dimensional array of points/samples (rows) and their corresponding coordinate labels (columns) to index.

Methods

__init__(points, options)

equals(other)

Check equality with another TreeAdapter of the same kind.

query(points)

Query points.