Class LPIntegerNormDistance

    • Field Detail

      • intp

        int intp
        Integer value of p.
    • Constructor Detail

      • LPIntegerNormDistance

        public LPIntegerNormDistance​(int p)
        Constructor, internal version.
        Parameters:
        p - Parameter p
    • Method Detail

      • preDistance

        private double preDistance​(NumberVector v1,
                                   NumberVector v2,
                                   int start,
                                   int end)
        Compute unscaled distance in a range of dimensions.
        Parameters:
        v1 - First object
        v2 - Second object
        start - First dimension
        end - Exclusive last dimension
        Returns:
        Aggregated values.
      • preDistanceVM

        private double preDistanceVM​(NumberVector v,
                                     SpatialComparable mbr,
                                     int start,
                                     int end)
        Compute unscaled distance in a range of dimensions.
        Parameters:
        v - First vector
        mbr - Second MBR
        start - First dimension
        end - Exclusive last dimension
        Returns:
        Aggregated values.
      • preDistanceMBR

        private double preDistanceMBR​(SpatialComparable mbr1,
                                      SpatialComparable mbr2,
                                      int start,
                                      int end)
        Compute unscaled distance in a range of dimensions.
        Parameters:
        mbr1 - First MBR
        mbr2 - Second MBR
        start - First dimension
        end - Exclusive last dimension
        Returns:
        Aggregated values.
      • preNorm

        private double preNorm​(NumberVector v,
                               int start,
                               int end)
        Compute unscaled norm in a range of dimensions.
        Parameters:
        v - Data object
        start - First dimension
        end - Exclusive last dimension
        Returns:
        Aggregated values.
      • preNormMBR

        private double preNormMBR​(SpatialComparable mbr,
                                  int start,
                                  int end)
        Compute unscaled norm in a range of dimensions.
        Parameters:
        mbr - Data object
        start - First dimension
        end - Exclusive last dimension
        Returns:
        Aggregated values.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class LPNormDistance