Package elki.similarity
Interface IndexBasedSimilarity<O>
-
- Type Parameters:
O
- Object type
- All Superinterfaces:
Similarity<O>
- All Known Implementing Classes:
AbstractIndexBasedSimilarity
,FractionalSharedNearestNeighborSimilarity
,SharedNearestNeighborSimilarity
public interface IndexBasedSimilarity<O> extends Similarity<O>
Interface for preprocessor/index based similarity functions.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IndexBasedSimilarity.Instance<T,I extends Index>
Instance interface for index/preprocessor based distance functions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends O>
IndexBasedSimilarity.Instance<T,?>instantiate(Relation<T> database)
Preprocess the database to get the actual distance function.-
Methods inherited from interface elki.similarity.Similarity
getInputTypeRestriction, isSymmetric
-
-
-
-
Method Detail
-
instantiate
<T extends O> IndexBasedSimilarity.Instance<T,?> instantiate(Relation<T> database)
Preprocess the database to get the actual distance function.- Specified by:
instantiate
in interfaceSimilarity<O>
- Parameters:
database
-- Returns:
- Actual distance query.
-
-