News for hackers. Stuff that matters.
Re:Using k-d trees to efficiently calculate nearest neighbor... by fho on Wednesday February 14, 2018 @03:57AM (#16374504)
Which reminds me that some time ago I build a simple [kd-tree library in haskell](https://github.com/fhaust/kdtree).

The interesting part is that it's easy to construct a (lazy) list of all points ordered based on the distance to the query point. Other queries (n-nearest neighbours, points in radius) are just derived from that function and traverse only the first some elements of the list.

There are no comments on this comment yet.