Class DiskCacheBasedDoubleDistance

    • Constructor Detail

      • DiskCacheBasedDoubleDistance

        public DiskCacheBasedDoubleDistance​(OnDiskUpperTriangleMatrix cache)
        Constructor.
        Parameters:
        cache - Distance matrix
      • DiskCacheBasedDoubleDistance

        public DiskCacheBasedDoubleDistance​(java.nio.file.Path matrixfile)
                                     throws java.io.IOException
        Constructor.
        Parameters:
        matrixfile - File name
        Throws:
        java.io.IOException
    • Method Detail

      • distance

        public double distance​(int i1,
                               int i2)
        Description copied from interface: DBIDRangeDistance
        Compute the distance for two integer offsets.
        Parameters:
        i1 - First offset
        i2 - Second offset
        Returns:
        Distance
      • checkRange

        public void checkRange​(DBIDRange range)
        Description copied from interface: DBIDRangeDistance
        Validate the range of DBIDs to use. This will log a warning if an obvious mismatch was found.
        Parameters:
        range - DBID range
      • equals

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