Skip to content

A fast, generic, multi-dimensional Binary Search Tree written in C#

License

Notifications You must be signed in to change notification settings

codeandcats/KdTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KdTree

A fast, generic, and multi-dimensional Binary Search Tree written in C#.

Install

Install via NuGet Package Manager Console:

PM> Install-Package KdTree

Examples

Find nearest point in two dimensions

var tree = new KdTree<float, int>(2, new FloatMath());
tree.Add(new[] { 50.0f, 80.0f }, 100);
tree.Add(new[] { 20.0f, 10.0f }, 200);

var nodes = tree.GetNearestNeighbours(new[] { 30.0f, 20.0f }, 1);

About

A fast, generic, multi-dimensional Binary Search Tree written in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages