O
- object typeI
- index typeD
- distance typepublic abstract class AbstractIndexBasedSimilarityFunction<O,I extends Index,R,D extends Distance<D>> extends Object implements IndexBasedSimilarityFunction<O,D>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index,R,D extends Distance<D>>
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?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFactory
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,?,R,D> instantiate(Relation<T> database)
IndexBasedSimilarityFunction
instantiate
in interface IndexBasedSimilarityFunction<O,D extends Distance<D>>
instantiate
in interface SimilarityFunction<O,D extends Distance<D>>
database
- Representation to usepublic boolean isSymmetric()
SimilarityFunction
isSymmetric
in interface SimilarityFunction<O,D extends Distance<D>>
true
when symmetricpublic final TypeInformation getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface SimilarityFunction<O,D extends Distance<D>>