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.
|
D |
similarity(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(DBID id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
DBID 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(DBID id1, DBID 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, DBID 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(DBID 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