de.lmu.ifi.dbs.elki.distance.similarityfunction
Class FractionalSharedNearestNeighborSimilarityFunction<O>
java.lang.Object
de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIndexBasedSimilarityFunction<O,SharedNearestNeighborIndex<O>,TreeSetDBIDs,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.similarityfunction.FractionalSharedNearestNeighborSimilarityFunction<O>
- Type Parameters:
O
- object type
- All Implemented Interfaces:
- IndexBasedSimilarityFunction<O,DoubleDistance>, NormalizedSimilarityFunction<O,DoubleDistance>, SimilarityFunction<O,DoubleDistance>, InspectionUtilFrequentlyScanned, Parameterizable
public class FractionalSharedNearestNeighborSimilarityFunction<O>
- extends AbstractIndexBasedSimilarityFunction<O,SharedNearestNeighborIndex<O>,TreeSetDBIDs,DoubleDistance>
- implements NormalizedSimilarityFunction<O,DoubleDistance>
SharedNearestNeighborSimilarityFunction with a pattern defined to accept
Strings that define a non-negative Integer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FractionalSharedNearestNeighborSimilarityFunction
public FractionalSharedNearestNeighborSimilarityFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
- Constructor.
- Parameters:
indexFactory
- Index factory.
instantiate
public <T extends O> FractionalSharedNearestNeighborSimilarityFunction.Instance<T> instantiate(Relation<T> database)
- Description copied from interface:
IndexBasedSimilarityFunction
- Preprocess the database to get the actual distance function.
- Specified by:
instantiate
in interface IndexBasedSimilarityFunction<O,DoubleDistance>
- Specified by:
instantiate
in interface SimilarityFunction<O,DoubleDistance>
- Specified by:
instantiate
in class AbstractIndexBasedSimilarityFunction<O,SharedNearestNeighborIndex<O>,TreeSetDBIDs,DoubleDistance>
- Parameters:
database
- Representation to use
- Returns:
- Actual distance query.
getDistanceFactory
public DoubleDistance getDistanceFactory()
- Description copied from interface:
SimilarityFunction
- Get a distance factory.
- Specified by:
getDistanceFactory
in interface SimilarityFunction<O,DoubleDistance>
- Returns:
- distance factory