class

Crystalline::Containers::KDTree(T)

Inherits Reference / Object

Constructors

new(points : Hash(T, Array(T)))
Source

Instance methods

build_tree(points : Array(Tuple(T, Array(T))), depth = 0)
Source
find_nearest(target : Array(T), k_nearest : Int32)

Find k closest points to given coordinates

Source

Nested types