napf.base.KDT.newtree#

KDT.newtree(tree_data, metric=2, leaf_size=10, nthread=1)[source]#
Given 2D array-like tree_data, it:
  1. makes sure data is a contiguous array

  2. builds a corresponding kdt.

Note that core kdt objects also have newtree() function with the same parameters, and build a new kdt each time it is called.

Parameters:

tree_data ((n, d) np.ndarray) – {double, float, int, long}