Package elki.distance
Class SharedNearestNeighborJaccardDistance<O>
- java.lang.Object
-
- elki.distance.AbstractDatabaseDistance<O>
-
- elki.distance.AbstractIndexBasedDistance<O,SharedNearestNeighborIndex.Factory<O>>
-
- elki.distance.SharedNearestNeighborJaccardDistance<O>
-
- Type Parameters:
O
- object type
- All Implemented Interfaces:
Distance<O>
,IndexBasedDistance<O>
public class SharedNearestNeighborJaccardDistance<O> extends AbstractIndexBasedDistance<O,SharedNearestNeighborIndex.Factory<O>>
SharedNearestNeighborJaccardDistance computes the Jaccard coefficient, which is a proper distance metric.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SharedNearestNeighborJaccardDistance.Instance<T>
Actual instance for a dataset.static class
SharedNearestNeighborJaccardDistance.Par<O>
Parameterization class.
-
Field Summary
-
Fields inherited from class elki.distance.AbstractIndexBasedDistance
indexFactory
-
Fields inherited from interface elki.distance.IndexBasedDistance
INDEX_ID
-
-
Constructor Summary
Constructors Constructor Description SharedNearestNeighborJaccardDistance(SharedNearestNeighborIndex.Factory<O> indexFactory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends O>
SharedNearestNeighborJaccardDistance.Instance<T>instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query.-
Methods inherited from class elki.distance.AbstractIndexBasedDistance
getInputTypeRestriction, isMetric, isSymmetric
-
-
-
-
Constructor Detail
-
SharedNearestNeighborJaccardDistance
public SharedNearestNeighborJaccardDistance(SharedNearestNeighborIndex.Factory<O> indexFactory)
Constructor.- Parameters:
indexFactory
- Index factory.
-
-
Method Detail
-
instantiate
public <T extends O> SharedNearestNeighborJaccardDistance.Instance<T> instantiate(Relation<T> database)
Description copied from interface:Distance
Instantiate with a database to get the actual distance query.- Parameters:
database
- The representation to use- Returns:
- Actual distance query.
-
-