Class InMemoryIDistanceIndex.Factory<V>

  • Type Parameters:
    V - Data type.
    All Implemented Interfaces:
    IndexFactory<V>
    Enclosing class:
    InMemoryIDistanceIndex<O>

    public static class InMemoryIDistanceIndex.Factory<V>
    extends java.lang.Object
    implements IndexFactory<V>
    Index factory for iDistance indexes.
    Author:
    Erich Schubert
    • Field Detail

      • distance

        Distance<? super V> distance
        Distance function to use.
      • k

        int k
        Number of reference points
    • Constructor Detail

      • Factory

        public Factory​(Distance<? super V> distance,
                       KMedoidsInitialization<V> initialization,
                       int k)
        Constructor.
        Parameters:
        distance - Distance function
        initialization - Initialization method
        k - Number of reference points