de.lmu.ifi.dbs.elki.distance.distancefunction
Class SharedNearestNeighborJaccardDistanceFunction<O>
java.lang.Object
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction<O,SharedNearestNeighborIndex<O>,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.SharedNearestNeighborJaccardDistanceFunction<O>
- Type Parameters:
O
- object type
- All Implemented Interfaces:
- DistanceFunction<O,DoubleDistance>, IndexBasedDistanceFunction<O,DoubleDistance>, InspectionUtilFrequentlyScanned, Parameterizable
public class SharedNearestNeighborJaccardDistanceFunction<O>
- extends AbstractIndexBasedDistanceFunction<O,SharedNearestNeighborIndex<O>,DoubleDistance>
SharedNearestNeighborJaccardDistanceFunction computes the Jaccard
coefficient, which is a proper distance metric.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedNearestNeighborJaccardDistanceFunction
public SharedNearestNeighborJaccardDistanceFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
- Constructor.
- Parameters:
indexFactory
- Index factory.
instantiate
public <T extends O> SharedNearestNeighborJaccardDistanceFunction.Instance<T> instantiate(Relation<T> database)
- Description copied from interface:
DistanceFunction
- Instantiate with a database to get the actual distance query.
- Parameters:
database
- The representation to use
- Returns:
- Actual distance query.
getDistanceFactory
public DoubleDistance getDistanceFactory()
- Description copied from interface:
DistanceFunction
- Method to get the distance functions factory.
- Specified by:
getDistanceFactory
in interface DistanceFunction<O,DoubleDistance>
- Specified by:
getDistanceFactory
in class AbstractDatabaseDistanceFunction<O,DoubleDistance>
- Returns:
- Factory for distance objects