Package elki.index.distancematrix
Class PrecomputedSimilarityMatrix.Factory<O>
- java.lang.Object
-
- elki.index.distancematrix.PrecomputedSimilarityMatrix.Factory<O>
-
- Type Parameters:
O- Object type
- All Implemented Interfaces:
IndexFactory<O>
- Enclosing class:
- PrecomputedSimilarityMatrix<O>
public static class PrecomputedSimilarityMatrix.Factory<O> extends java.lang.Object implements IndexFactory<O>
Factory for the index.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected Similarity<? super O>similarityFunctionNested similarity function.
-
Constructor Summary
Constructors Constructor Description Factory(Similarity<? super O> similarityFunction)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.PrecomputedSimilarityMatrix<O>instantiate(Relation<O> relation)Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
similarityFunction
protected final Similarity<? super O> similarityFunction
Nested similarity function.
-
-
Constructor Detail
-
Factory
public Factory(Similarity<? super O> similarityFunction)
Constructor.- Parameters:
similarityFunction- Similarity function
-
-
Method Detail
-
instantiate
public PrecomputedSimilarityMatrix<O> instantiate(Relation<O> relation)
Description copied from interface:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<O>- 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<O>- Returns:
- Type restriction
-
-