Interface DistanceCalculator<T>

  • Type Parameters:
    T - the data type to calculate distances to

    public interface DistanceCalculator<T>
    A class that can calculate the distance to a given object stored in the PRTree
    • Method Detail

      • distanceTo

        double distanceTo​(T t,
                          PointND p)
        Calculate the distance between the given object and the point
        Parameters:
        t - the object to calculate the distance to
        p - the point
        Returns:
        The calculated distance