Package elki.distance

Class AbstractDBIDRangeDistance

    • Constructor Detail

      • AbstractDBIDRangeDistance

        public AbstractDBIDRangeDistance()
    • Method Detail

      • distance

        public double distance​(DBIDRef o1,
                               DBIDRef o2)
        Description copied from interface: DBIDDistance
        Returns the distance between the two objects specified by their object ids.
        Specified by:
        distance in interface DBIDDistance
        Parameters:
        o1 - first object id
        o2 - second object id
        Returns:
        the distance between the two objects specified by their object ids
      • instantiate

        public <O extends DBIDDistanceQuery<O> instantiate​(Relation<O> database)
        Description copied from interface: Distance
        Instantiate with a database to get the actual distance query.
        Specified by:
        instantiate in interface Distance<DBID>
        Parameters:
        database - The representation to use
        Returns:
        Actual distance query.