Class AbstractSimilarityAdapter<O>

    • Field Detail

      • similarityFunction

        protected Similarity<? super O> similarityFunction
        Holds the similarity function.
    • Constructor Detail

      • AbstractSimilarityAdapter

        public AbstractSimilarityAdapter​(Similarity<? super O> similarityFunction)
        Constructor.
        Parameters:
        similarityFunction - Similarity function to use.
    • Method Detail

      • getInputTypeRestriction

        public TypeInformation getInputTypeRestriction()
        Description copied from interface: Distance
        Get the input data type of the function.
        Returns:
        Type restriction
      • isSymmetric

        public boolean isSymmetric()
        Description copied from interface: Distance
        Is this function symmetric?
        Returns:
        true when symmetric
      • instantiate

        public abstract <T extends ODistanceQuery<T> instantiate​(Relation<T> database)
        Description copied from interface: Distance
        Instantiate with a database to get the actual distance query.
        Parameters:
        database - The representation to use
        Returns:
        Actual distance query.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object