Skip to main content

Module kd_trees

Module kd_trees 

Source
Expand description

k-d trees for nearest-neighbour and range queries in D dimensions.

See the book entry Spatial trees.

Structs§

KdTree
A static, balanced k-d tree over points in D dimensions.
PeriodicKdTree
A k-d tree on a periodic box [0, L₁) × … × [0, L_D) (SciPy’s cKDTree(..., boxsize=L)): distances are measured to the nearest periodic image, as in simulations with periodic boundary conditions. Queries search the 3^D images of the query point.