O
- object typeF
- index typepublic abstract class AbstractIndexBasedSimilarityFunction<O,F extends IndexFactory<O>> extends java.lang.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 |
---|---|
protected F |
indexFactory
Parameter to specify the preprocessor to be used.
|
Constructor and Description |
---|
AbstractIndexBasedSimilarityFunction(F 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?
|
protected F extends IndexFactory<O> indexFactory
public AbstractIndexBasedSimilarityFunction(F 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 © 2019 ELKI Development Team. License information.