Package elki.distance

Interface PrimitiveDistance<O>

    • Method Detail

      • distance

        double distance​(O o1,
                        O o2)
        Computes the distance between two given DatabaseObjects according to this distance function.
        Parameters:
        o1 - first DatabaseObject
        o2 - second DatabaseObject
        Returns:
        the distance between two given DatabaseObjects according to this distance function
      • instantiate

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