Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

hoesler/kdtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kdtree

Build Status

A Scala library containing a k-d tree implementation.

Description

Trees are immutable. Construction is done asynchronously using a fork-join approach.

Usage

val nodes: Seq[(HyperPoint, String)] = List(
    (HyperPoint(2, 3), "A"),
    (HyperPoint(5, 4), "B")
)

val tree = KDTree(nodes)

tree.filterRange(HyperSphere(HyperPoint(7, 2), 1.5))
tree.findNeighbours(HyperPoint(9.1, 6.1), k = 1)

About

A Scala k-d tree library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages