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.
|
parent, relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
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, getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, distance, distance
private SimilarityQuery<? super O> similarityQuery
public 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)
DistanceQuery
id1
- first object idid2
- second object idCopyright © 2019 ELKI Development Team. License information.