V
- Data type.public static class InMemoryIDistanceIndex.Factory<V> extends Object implements IndexFactory<V,InMemoryIDistanceIndex<V>>
Modifier and Type | Class and Description |
---|---|
static class |
InMemoryIDistanceIndex.Factory.Parameterizer<V>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) DistanceFunction<? super V> |
distance
Distance function to use.
|
(package private) KMedoidsInitialization<V> |
initialization
Initialization method.
|
(package private) int |
k
Number of reference points
|
Constructor and Description |
---|
Factory(DistanceFunction<? super V> distance,
KMedoidsInitialization<V> initialization,
int k)
Constructor.
|
Modifier and Type | Method and 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).
|
DistanceFunction<? super V> distance
KMedoidsInitialization<V> initialization
int k
public Factory(DistanceFunction<? super V> distance, KMedoidsInitialization<V> initialization, int k)
distance
- Distance functioninitialization
- Initialization methodk
- Number of reference pointspublic InMemoryIDistanceIndex<V> instantiate(Relation<V> relation)
IndexFactory
instantiate
in interface IndexFactory<V,InMemoryIDistanceIndex<V>>
relation
- the relation to indexpublic TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<V,InMemoryIDistanceIndex<V>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.