
O - object typepublic class FractionalSharedNearestNeighborSimilarityFunction<O> extends AbstractIndexBasedSimilarityFunction<O,SharedNearestNeighborIndex<O>,ArrayDBIDs,DoubleDistance> implements NormalizedSimilarityFunction<O,DoubleDistance>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
FractionalSharedNearestNeighborSimilarityFunction.Instance<T>
Actual instance for a dataset. 
 | 
static class  | 
FractionalSharedNearestNeighborSimilarityFunction.Parameterizer<O>
Parameterization class. 
 | 
INDEX_ID, indexFactory| Constructor and Description | 
|---|
FractionalSharedNearestNeighborSimilarityFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DoubleDistance | 
getDistanceFactory()
Get a distance factory. 
 | 
<T extends O>  | 
instantiate(Relation<T> database)
Preprocess the database to get the actual distance function. 
 | 
getInputTypeRestriction, isSymmetricclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputTypeRestriction, isSymmetricpublic FractionalSharedNearestNeighborSimilarityFunction(SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborIndex<O>> indexFactory)
indexFactory - Index factory.public <T extends O> FractionalSharedNearestNeighborSimilarityFunction.Instance<T> instantiate(Relation<T> database)
IndexBasedSimilarityFunctioninstantiate in interface IndexBasedSimilarityFunction<O,DoubleDistance>instantiate in interface SimilarityFunction<O,DoubleDistance>instantiate in class AbstractIndexBasedSimilarityFunction<O,SharedNearestNeighborIndex<O>,ArrayDBIDs,DoubleDistance>database - Representation to usepublic DoubleDistance getDistanceFactory()
SimilarityFunctiongetDistanceFactory in interface SimilarityFunction<O,DoubleDistance>