public static class FloatKDTree.KDTreeNode extends Object
| Modifier and Type | Field and Description | 
|---|---|
| float | discriminantSplitting value | 
| int | discriminantDimensionSplitting dimension | 
| int[] | indicesThe leaf only holds the indices of the original data | 
| FloatKDTree.KDTreeNode | leftNode to the left | 
| float[] | maxBoundsThe maximum bounds of this node | 
| float[] | minBoundsThe minimum bounds of this node | 
| FloatKDTree.KDTreeNode | rightNode to the right | 
| Constructor and Description | 
|---|
| KDTreeNode(float[][] pnts,
          IntArrayView inds,
          FloatKDTree.SplitChooser split)Construct a new node with the given data | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isContainedBy(float[] lowerExtreme,
             float[] upperExtreme)Test whether the bounds of this node are fully contained by the
 hyperrectangle described by the given bounds. | 
| boolean | isDisjointFrom(float[] lowerExtreme,
              float[] upperExtreme)Test whether the bounds of this node are disjoint from the
 hyperrectangle described by the given bounds. | 
| boolean | isLeaf()Test to see if this node is a leaf node (i.e. | 
public FloatKDTree.KDTreeNode left
public FloatKDTree.KDTreeNode right
public float discriminant
public int discriminantDimension
public float[] minBounds
public float[] maxBounds
public int[] indices
public KDTreeNode(float[][] pnts, IntArrayView inds, FloatKDTree.SplitChooser split)
pnts - the data for the node and its childreninds - a list of indices that point to the relevant parts of the
            pnts array that should be usedsplit - the FloatKDTree.SplitChooser to use when constructing
            the treepublic boolean isLeaf()
indices != nullpublic boolean isDisjointFrom(float[] lowerExtreme, float[] upperExtreme)
lowerExtreme - the lower bounds of the hyperrectangleupperExtreme - the upper bounds of the hyperrectanglepublic boolean isContainedBy(float[] lowerExtreme, float[] upperExtreme)
lowerExtreme - the lower bounds of the hyperrectangleupperExtreme - the upper bounds of the hyperrectangle