Package elki.index.idistance
Class InMemoryIDistanceIndex.Factory<V>
- java.lang.Object
-
- elki.index.idistance.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 Summary
Fields Modifier and Type Field Description (package private) Distance<? super V>distanceDistance function to use.(package private) KMedoidsInitialization<V>initializationInitialization method.(package private) intkNumber of reference points
-
Constructor Summary
Constructors Constructor Description Factory(Distance<? super V> distance, KMedoidsInitialization<V> initialization, int k)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformationgetInputTypeRestriction()Get the input type restriction used for negotiating the data query.InMemoryIDistanceIndex<V>instantiate(Relation<V> relation)Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
initialization
KMedoidsInitialization<V> initialization
Initialization method.
-
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 functioninitialization- Initialization methodk- Number of reference points
-
-
Method Detail
-
instantiate
public InMemoryIDistanceIndex<V> instantiate(Relation<V> relation)
Description copied from interface:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<V>- Parameters:
relation- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactoryGet the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestrictionin interfaceIndexFactory<V>- Returns:
- Type restriction
-
-