class Crystalline::Containers::KDTree(T)

Defined in:

containers/kd_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Hash(T, Array(T))) #

[View source]

Instance Method Detail

def build_tree(points : Array(Tuple(T, Array(T))), depth = 0) #

[View source]
def find_nearest(target : Array(T), k_nearest : Int32) #

Find k closest points to given coordinates


[View source]