T
- Object typepublic static class FractionalSharedNearestNeighborSimilarityFunction.Instance<T> extends AbstractIndexBasedSimilarityFunction.Instance<T,SharedNearestNeighborIndex<T>,TreeSetDBIDs,DoubleDistance>
index
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
FractionalSharedNearestNeighborSimilarityFunction.Instance(Relation<T> database,
SharedNearestNeighborIndex<T> preprocessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static int |
countSharedNeighbors(TreeSetDBIDs neighbors1,
TreeSetDBIDs neighbors2) |
DoubleDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
DoubleDistance |
similarity(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
getIndex
similarity, similarity, similarity
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation, similarity, similarity, similarity
public FractionalSharedNearestNeighborSimilarityFunction.Instance(Relation<T> database, SharedNearestNeighborIndex<T> preprocessor)
database
- Databasepreprocessor
- Preprocessorprotected static int countSharedNeighbors(TreeSetDBIDs neighbors1, TreeSetDBIDs neighbors2)
public DoubleDistance similarity(DBID id1, DBID id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<T,DoubleDistance>
similarity
in class AbstractSimilarityQuery<T,DoubleDistance>
id1
- first object idid2
- second object idpublic DoubleDistance getDistanceFactory()
SimilarityQuery