O
- object typeI
- index typepublic abstract class AbstractIndexBasedSimilarityFunction<O,I extends Index> extends Object implements IndexBasedSimilarityFunction<O>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index>
The actual instance bound to a particular database.
|
static class |
AbstractIndexBasedSimilarityFunction.Parameterizer<F extends IndexFactory<?,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
INDEX_ID
Parameter to specify the preprocessor to be used.
|
protected IndexFactory<O,I> |
indexFactory
Parameter to specify the preprocessor to be used.
|
Constructor and Description |
---|
AbstractIndexBasedSimilarityFunction(IndexFactory<O,I> indexFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input data type of the function.
|
abstract <T extends O> |
instantiate(Relation<T> database)
Preprocess the database to get the actual distance function.
|
boolean |
isSymmetric()
Is this function symmetric?
|
public static final OptionID INDEX_ID
Key: -similarityfunction.preprocessor
protected IndexFactory<O,I extends Index> indexFactory
Key: -similarityfunction.preprocessor
public AbstractIndexBasedSimilarityFunction(IndexFactory<O,I> indexFactory)
indexFactory
- public abstract <T extends O> AbstractIndexBasedSimilarityFunction.Instance<T,?> instantiate(Relation<T> database)
IndexBasedSimilarityFunction
instantiate
in interface IndexBasedSimilarityFunction<O>
instantiate
in interface SimilarityFunction<O>
database
- Representation to usepublic boolean isSymmetric()
SimilarityFunction
isSymmetric
in interface SimilarityFunction<O>
true
when symmetricpublic final TypeInformation getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface SimilarityFunction<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.