KDTree.build

KDTree.build(objects, axis=0)[source]

Populate a kd-tree with given objects.

Parameters
  • objects (list) – The tree objects.

  • axis (int, optional) – The axis along which to build.

Returns

Node – The root node.