O
- object typepublic class SharedNearestNeighborJaccardDistanceFunction<O> extends AbstractIndexBasedDistanceFunction<O,SharedNearestNeighborIndex<O>,DoubleDistance>
Modifier and Type | Class and Description |
---|---|
static class |
SharedNearestNeighborJaccardDistanceFunction.Instance<T>
Actual instance for a dataset.
|
static class |
SharedNearestNeighborJaccardDistanceFunction.Parameterizer<O>
Parameterization class.
|
indexFactory
INDEX_ID
Constructor and Description |
---|
SharedNearestNeighborJaccardDistanceFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
<T extends O> |
instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query.
|
getInputTypeRestriction, isMetric, isSymmetric
public SharedNearestNeighborJaccardDistanceFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
indexFactory
- Index factory.public <T extends O> SharedNearestNeighborJaccardDistanceFunction.Instance<T> instantiate(Relation<T> database)
DistanceFunction
database
- The representation to usepublic DoubleDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<O,DoubleDistance>
getDistanceFactory
in class AbstractDatabaseDistanceFunction<O,DoubleDistance>