This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Dec 03 12:21:20 -0800 2009 | |
| |
LICENSE | Mon Nov 09 17:36:39 -0800 2009 | |
| |
README.markdown | Wed Nov 11 14:01:46 -0800 2009 | |
| |
project.clj | Sat Dec 12 16:01:12 -0800 2009 | |
| |
src/ | Thu Dec 03 12:13:15 -0800 2009 | |
| |
test/ | Thu Dec 03 12:21:20 -0800 2009 |
README.markdown
clj-kdtree
Overview
A Kd-tree is a special type of binary tree that partitions points in a k-dimensional space. It can be used for efficient nearest-neighbor searches.
For more detail, refer to Wikipedia on Kd-trees.
Usage
;;; Use a kdtree to find neighbors for one point given a set of points.
(let [points [[8 8] [3 1] [6 6] [7 7] [1 3] [4 4] [5 5]]
tree (build-tree points)
neighbors (nearest-neighbor tree [2 2] 4)]
(println "Tree:" tree
"\n\nFour points closest to [2 2]:\n"
neighbors))
License
Copyright (C) 2009 Brendan Ribera. All rights reserved.
Distributed under the MIT License; see the file LICENSE at the root of this distribution.







