Package org.ddogleg.nn.alg
Class KdTreeMemory<P>
java.lang.Object
org.ddogleg.nn.alg.KdTreeMemory<P>
Memory management for recycling KdTree data structures.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recycle
(KdTree.Node node) void
recycleGraph
(KdTree tree) Returns a new node.requestNode
(P point, int index) Request a leaf node be returned.requestTree
(int N)
-
Field Details
-
unusedNodes
-
unusedTrees
-
open
-
-
Constructor Details
-
KdTreeMemory
public KdTreeMemory()
-
-
Method Details
-
requestNode
Returns a new node. All object references can be assumed to be null. -
requestNode
Request a leaf node be returned. All data parameters will be automatically assigned appropriate values for a leaf. -
requestTree
-
recycle
-
recycleGraph
-