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

    • Field Detail


        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.

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

        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
        config - Parameterization
      • getSimilarityRestriction

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