Class PartialSquaredEuclideanDistance

    • Method Summary

      All Methods Instance Methods Concrete 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​(NumberVector a, NumberVector b)
      Compute the actual distance of two objects.
      double transformOut​(double rawdist)
      Transform a raw distance to an output (external) distance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PartialSquaredEuclideanDistance

        @Deprecated
        private PartialSquaredEuclideanDistance()
        Deprecated.
        Constructor. Use STATIC instead.
    • Method Detail

      • combineRaw

        public double combineRaw​(double rawdist,
                                 double delta,
                                 double prevdelta)
        Description copied from interface: PartialDistance
        Combine the distance information.
        Specified by:
        combineRaw in interface PartialDistance<NumberVector>
        Parameters:
        rawdist - Raw (often squared) previous distance
        delta - New delta
        prevdelta - Previous delta
        Returns:
        New raw distance
      • compareRawRegular

        public boolean compareRawRegular​(double raw,
                                         double reg)
        Description copied from interface: PartialDistance
        Check if a "raw" distance is less or equal a regular distance.
        Specified by:
        compareRawRegular in interface PartialDistance<NumberVector>
        Parameters:
        raw - Raw distance (usually squared)
        reg - Regular distance
        Returns:
        True if less than or equal
      • transformOut

        public double transformOut​(double rawdist)
        Description copied from interface: PartialDistance
        Transform a raw distance to an output (external) distance.
        Specified by:
        transformOut in interface PartialDistance<NumberVector>
        Parameters:
        rawdist - Raw distance
        Returns:
        External distance