Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
Crystalline::Containers::KDTree::Node(T)