O
- Object typepublic abstract static class AbstractSimilarityAdapter.Instance<O> extends AbstractDatabaseDistanceFunction.Instance<O>
Modifier and Type | Field and Description |
---|---|
private SimilarityQuery<? super O> |
similarityQuery
The similarity query we use.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractSimilarityAdapter.Instance(Relation<O> database,
DistanceFunction<? super O> parent,
SimilarityQuery<? super O> similarityQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
transform(double similarity)
Transformation function.
|
getDistanceFunction
distance, distance, distance
getRelation
private SimilarityQuery<? super O> similarityQuery
public AbstractSimilarityAdapter.Instance(Relation<O> database, DistanceFunction<? super O> parent, SimilarityQuery<? super O> similarityQuery)
database
- Database to useparent
- Parent distance functionsimilarityQuery
- Similarity querypublic abstract double transform(double similarity)
similarity
- Similarity valuepublic double distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O>
distance
in class AbstractDistanceQuery<O>
id1
- first object idid2
- second object idCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.