|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIndexBasedSimilarityFunction<O,I,R,D>
O
- object typeI
- index typeD
- distance typepublic abstract class AbstractIndexBasedSimilarityFunction<O,I extends Index,R,D extends Distance<D>>
Abstract super class for distance functions needing a preprocessor.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractIndexBasedSimilarityFunction(IndexFactory<O,I> indexFactory)
Constructor. |
Method Summary | ||
---|---|---|
TypeInformation |
getInputTypeRestriction()
Get the input data type of the function. |
|
abstract
|
instantiate(Relation<T> database)
Preprocess the database to get the actual distance function. |
|
boolean |
isSymmetric()
Is this function symmetric? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction |
---|
getDistanceFactory |
Field Detail |
---|
public static final OptionID INDEX_ID
Key: -similarityfunction.preprocessor
protected IndexFactory<O,I extends Index> indexFactory
Key: -similarityfunction.preprocessor
Constructor Detail |
---|
public AbstractIndexBasedSimilarityFunction(IndexFactory<O,I> indexFactory)
indexFactory
- Method Detail |
---|
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 use
public 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>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |