
T - Object typepublic static class SharedNearestNeighborJaccardDistanceFunction.Instance<T> extends AbstractIndexBasedDistanceFunction.Instance<T,SharedNearestNeighborIndex<T>,SharedNearestNeighborJaccardDistanceFunction<T>>
index, parentrelationHINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
SharedNearestNeighborJaccardDistanceFunction.Instance(Relation<T> database,
SharedNearestNeighborIndex<T> preprocessor,
SharedNearestNeighborJaccardDistanceFunction<T> parent)
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.
|
protected static double |
jaccardCoefficient(DBIDs neighbors1,
DBIDs neighbors2)
Compute the Jaccard coefficient
|
getDistanceFunction, getIndexdistance, distance, distancegetRelationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistance, distance, distance, getRelationpublic SharedNearestNeighborJaccardDistanceFunction.Instance(Relation<T> database, SharedNearestNeighborIndex<T> preprocessor, SharedNearestNeighborJaccardDistanceFunction<T> parent)
database - Databasepreprocessor - Preprocessorparent - Parent distanceprotected static double jaccardCoefficient(DBIDs neighbors1, DBIDs neighbors2)
neighbors1 - SORTED neighbor ids of firstneighbors2 - SORTED neighbor ids of secondpublic double distance(DBIDRef id1, DBIDRef id2)
AbstractDistanceQuerydistance in interface DistanceQuery<T>distance in class AbstractDistanceQuery<T>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.