O
- Database object type.D
- Distance result type.public class PrimitiveSimilarityQuery<O,D extends Distance<D>> extends AbstractSimilarityQuery<O,D>
Modifier and Type | Field and Description |
---|---|
protected PrimitiveSimilarityFunction<? super O,D> |
similarityFunction
The distance function we use.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
PrimitiveSimilarityQuery(Relation<? extends O> relation,
PrimitiveSimilarityFunction<? super O,D> similarityFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
getDistanceFactory()
Method to get the distance functions factory.
|
PrimitiveSimilarityFunction<? super O,D> |
getSimilarityFunction()
Get the inner similarity function.
|
D |
similarity(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
protected final PrimitiveSimilarityFunction<? super O,D extends Distance<D>> similarityFunction
public PrimitiveSimilarityQuery(Relation<? extends O> relation, PrimitiveSimilarityFunction<? super O,D> similarityFunction)
relation
- Relation to use.similarityFunction
- Our similarity functionpublic D similarity(DBIDRef id1, DBIDRef id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
id1
- first object idid2
- second object idpublic D similarity(O o1, DBIDRef id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
o1
- first objectid2
- second object idpublic D similarity(DBIDRef id1, O o2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
id1
- first object ido2
- second objectpublic D similarity(O o1, O o2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
o1
- first objecto2
- second objectpublic D getDistanceFactory()
SimilarityQuery
public PrimitiveSimilarityFunction<? super O,D> getSimilarityFunction()
SimilarityQuery