Interface DistanceQuery<O>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double distance​(DBIDRef id1, DBIDRef id2)
      Returns the distance between the two objects specified by their object ids.
      double distance​(DBIDRef id1, O o2)
      Returns the distance between the two objects specified by their object ids.
      double distance​(O o1, DBIDRef id2)
      Returns the distance between the two objects specified by their object ids.
      double distance​(O o1, O o2)
      Returns the distance between the two objects specified by their object ids.
      Distance<? super O> getDistance()
      Get the inner distance function.
      Relation<? extends O> getRelation()
      Access the underlying data query.
    • Method Detail

      • distance

        double distance​(DBIDRef id1,
                        DBIDRef id2)
        Returns the distance between the two objects specified by their object ids.
        Parameters:
        id1 - first object id
        id2 - second object id
        Returns:
        the distance between the two objects specified by their object ids
      • distance

        double distance​(O o1,
                        DBIDRef id2)
        Returns the distance between the two objects specified by their object ids.
        Parameters:
        o1 - first object
        id2 - second object id
        Returns:
        the distance between the two objects specified by their object ids
      • distance

        double distance​(DBIDRef id1,
                        O o2)
        Returns the distance between the two objects specified by their object ids.
        Parameters:
        id1 - first object id
        o2 - second object
        Returns:
        the distance between the two objects specified by their object ids
      • distance

        double distance​(O o1,
                        O o2)
        Returns the distance between the two objects specified by their object ids.
        Parameters:
        o1 - first object
        o2 - second object
        Returns:
        the distance between the two objects specified by their object ids
      • getDistance

        Distance<? super O> getDistance()
        Get the inner distance function.
        Returns:
        Distance function
      • getRelation

        Relation<? extends O> getRelation()
        Access the underlying data query.
        Returns:
        data query in use