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>
distance
Distance function to use.(package private) KMedoidsInitialization<V>
initialization
Initialization method.(package private) int
k
Number 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 TypeInformation
getInputTypeRestriction()
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:IndexFactory
Sets the database in the distance function of this index (if existing).- Specified by:
instantiate
in interfaceIndexFactory<V>
- Parameters:
relation
- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactory
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceIndexFactory<V>
- Returns:
- Type restriction
-
-