Package elki.distance

Interface Distance<O>

    • Method Detail

      • isSymmetric

        default boolean isSymmetric()
        Is this function symmetric?
        Returns:
        true when symmetric
      • isMetric

        default boolean isMetric()
        Is this distance function metric (satisfy the triangle inequality)
        Returns:
        true when metric.
      • isSquared

        default boolean isSquared()
        Squared distances, that would become metric after square root.

        E.g. squared Euclidean.

        Returns:
        true when squared.
      • getInputTypeRestriction

        TypeInformation getInputTypeRestriction()
        Get the input data type of the function.
        Returns:
        Type restriction
      • instantiate

        <T extends ODistanceQuery<T> instantiate​(Relation<T> relation)
        Instantiate with a database to get the actual distance query.
        Parameters:
        relation - The representation to use
        Returns:
        Actual distance query.