Package elki.similarity
Class FractionalSharedNearestNeighborSimilarity<O>
- java.lang.Object
-
- elki.similarity.AbstractIndexBasedSimilarity<O,SharedNearestNeighborIndex.Factory<O>>
-
- elki.similarity.FractionalSharedNearestNeighborSimilarity<O>
-
- Type Parameters:
O
- object type
- All Implemented Interfaces:
IndexBasedSimilarity<O>
,NormalizedSimilarity<O>
,Similarity<O>
public class FractionalSharedNearestNeighborSimilarity<O> extends AbstractIndexBasedSimilarity<O,SharedNearestNeighborIndex.Factory<O>> implements NormalizedSimilarity<O>
SharedNearestNeighborSimilarity with a pattern defined to accept Strings that define a non-negative Integer.- Since:
- 0.2
- Author:
- Arthur Zimek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FractionalSharedNearestNeighborSimilarity.Instance<T>
Actual instance for a dataset.
-
Field Summary
-
Fields inherited from class elki.similarity.AbstractIndexBasedSimilarity
indexFactory
-
-
Constructor Summary
Constructors Constructor Description FractionalSharedNearestNeighborSimilarity(SharedNearestNeighborIndex.Factory<O> indexFactory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends O>
FractionalSharedNearestNeighborSimilarity.Instance<T>instantiate(Relation<T> database)
Preprocess the database to get the actual distance function.-
Methods inherited from class elki.similarity.AbstractIndexBasedSimilarity
getInputTypeRestriction, isSymmetric
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.similarity.Similarity
getInputTypeRestriction, isSymmetric
-
-
-
-
Constructor Detail
-
FractionalSharedNearestNeighborSimilarity
public FractionalSharedNearestNeighborSimilarity(SharedNearestNeighborIndex.Factory<O> indexFactory)
Constructor.- Parameters:
indexFactory
- Index factory.
-
-
Method Detail
-
instantiate
public <T extends O> FractionalSharedNearestNeighborSimilarity.Instance<T> instantiate(Relation<T> database)
Description copied from interface:IndexBasedSimilarity
Preprocess the database to get the actual distance function.- Specified by:
instantiate
in interfaceIndexBasedSimilarity<O>
- Specified by:
instantiate
in interfaceSimilarity<O>
- Specified by:
instantiate
in classAbstractIndexBasedSimilarity<O,SharedNearestNeighborIndex.Factory<O>>
- Parameters:
database
- Representation to use- Returns:
- Actual distance query.
-
-