KDTree
KDTree copied to clipboard
Simple C++ KD-Tree implementation
Corrected several type typos and adjusted indentation.
when build the tree, if the nth number(middle nuumber) have other same member, the seperation of the left/right sub tree will have some error, right? because this will not fit...
Hi, thank you so much for the cool work. I wonder is there anyway to get the list of K nearest points?
Simple fix to pass `nbh` vector across `neighborhood_` calls rather than build new and transfer within each function. Saves a lot of unnecessary vector creation/destruction. Identical output, ~4x speed improvement...