Interface PartialDistance<O>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double combineRaw​(double rawdist, double delta, double prevdelta)
      Combine the distance information.
      boolean compareRawRegular​(double raw, double reg)
      Check if a "raw" distance is less or equal a regular distance.
      double distance​(O a, O b)
      Compute the actual distance of two objects.
      double transformOut​(double rawdist)
      Transform a raw distance to an output (external) distance.
    • Method Detail

      • combineRaw

        double combineRaw​(double rawdist,
                          double delta,
                          double prevdelta)
        Combine the distance information.
        Parameters:
        rawdist - Raw (often squared) previous distance
        delta - New delta
        prevdelta - Previous delta
        Returns:
        New raw distance
      • compareRawRegular

        boolean compareRawRegular​(double raw,
                                  double reg)
        Check if a "raw" distance is less or equal a regular distance.
        Parameters:
        raw - Raw distance (usually squared)
        reg - Regular distance
        Returns:
        True if less than or equal
      • distance

        double distance​(O a,
                        O b)
        Compute the actual distance of two objects.
        Parameters:
        a - First
        b - Second
        Returns:
        Distance
      • transformOut

        double transformOut​(double rawdist)
        Transform a raw distance to an output (external) distance.
        Parameters:
        rawdist - Raw distance
        Returns:
        External distance