Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
kd_tree
v0.1.0
Kd
Node
Point
Tree
Built with Crystal 1.9.2
2023-10-08 10:02:38 UTC
class
Kd::Tree
Kd::Tree
Reference
Object
Defined in:
kd_tree.cr
Constructors
.new
(points : Array(Point), depth =
0
)
Instance Method Summary
#nearest
(query : Point, n : Int32)
#nearest
(query : Point)
#root
: Kd::Node?
Constructor Detail
def self.
new
(points : Array(
Point
), depth =
0
)
#
[
View source
]
Instance Method Detail
def
nearest
(query :
Point
, n : Int32)
#
[
View source
]
def
nearest
(query :
Point
)
#
[
View source
]
def
root
:
Kd::Node
?
#
[
View source
]