Class LnSimilarityAdapter<O>

  • Type Parameters:
    O - object class to process.
    All Implemented Interfaces:
    Distance<O>

    public class LnSimilarityAdapter<O>
    extends AbstractSimilarityAdapter<O>
    Adapter from a normalized similarity function to a distance function using -log(sim).
    Since:
    0.2
    Author:
    Erich Schubert
    • Constructor Detail

      • LnSimilarityAdapter

        public LnSimilarityAdapter​(NormalizedSimilarity<? super O> similarityFunction)
        Constructor.
        Parameters:
        similarityFunction - Similarity function