Class KDEntryDist<T>

    • Field Detail

      • COMP

        public static final org.tinspin.index.kdtree.KDEntryDist.QEntryComparator COMP
    • Constructor Detail

      • KDEntryDist

        public KDEntryDist​(Node<T> node,
                           double dist)
    • Method Detail

      • dist

        public double dist()
        Description copied from interface: PointEntryDist
        An entry with distance property. This is, for example, used as a return value for nearest neighbour queries.
        Specified by:
        dist in interface PointEntryDist<T>
        Returns:
        the distance
      • point

        public double[] point()
        Specified by:
        point in interface PointEntry<T>
        Returns:
        The coordinates of the entry.
      • value

        public T value()
        Specified by:
        value in interface PointEntry<T>
        Returns:
        The value associated with the rectangle or point.