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>
similarityFunction
Nested 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 TypeInformation
getInputTypeRestriction()
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:IndexFactory
Sets the database in the distance function of this index (if existing).- Specified by:
instantiate
in interfaceIndexFactory<O>
- 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<O>
- Returns:
- Type restriction
-
-