Class AbstractSimilarityAdapter.Par<O,​S extends Similarity<? super O>>

    • Field Detail

      • SIMILARITY_FUNCTION_ID

        public static final OptionID SIMILARITY_FUNCTION_ID
        Parameter to specify the similarity function to derive the distance between database objects from. Must extend Similarity .
      • similarityFunction

        protected S extends Similarity<? super O> similarityFunction
        Holds the similarity function.
      • ARBITRARY_SIMILARITY

        protected java.lang.Class<Similarity<? super O>> ARBITRARY_SIMILARITY
        Arbitrary Similarity functions
      • NORMALIZED_SIMILARITY

        protected java.lang.Class<NormalizedSimilarity<? super O>> NORMALIZED_SIMILARITY
        Normalized similarity functions
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(Parameterization config)
        Description copied from interface: Parameterizer
        Configure the class.

        Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.

        Specified by:
        configure in interface Parameterizer
        Parameters:
        config - Parameterization
      • getSimilarityRestriction

        protected abstract java.lang.Class<? extends S> getSimilarityRestriction()
        Get the similarity function restriction.
        Returns:
        Distance function supported.