Class KdTreeMemory<P>

java.lang.Object
org.ddogleg.nn.alg.KdTreeMemory<P>

public class KdTreeMemory<P> extends Object
Memory management for recycling KdTree data structures.
  • Field Details

  • Constructor Details

    • KdTreeMemory

      public KdTreeMemory()
  • Method Details

    • requestNode

      public KdTree.Node requestNode()
      Returns a new node. All object references can be assumed to be null.
    • requestNode

      public KdTree.Node requestNode(P point, int index)
      Request a leaf node be returned. All data parameters will be automatically assigned appropriate values for a leaf.
    • requestTree

      public KdTree requestTree(int N)
    • recycle

      public void recycle(KdTree.Node node)
    • recycleGraph

      public void recycleGraph(KdTree tree)