lambda-ml.data.kd-tree
make-tree
(make-tree dims nodes)
(make-tree dims nodes f)
(make-tree dims nodes f depth)
Returns a k-d tree, with dims as the number of dimensions, for the given nodes. Optionally, a function f can be supplied and used to return the k-dimensional point for a given node. Otherwise, the node itself is assumed to be the k-dimensional point.