Package elki.distance.adapter
Class ArccosSimilarityAdapter<O>
- java.lang.Object
-
- elki.distance.AbstractDatabaseDistance<O>
-
- elki.distance.adapter.AbstractSimilarityAdapter<O>
-
- elki.distance.adapter.ArccosSimilarityAdapter<O>
-
- Type Parameters:
O
- Object class to process.
- All Implemented Interfaces:
Distance<O>
public class ArccosSimilarityAdapter<O> extends AbstractSimilarityAdapter<O>
Adapter from a normalized similarity function to a distance function usingarccos(sim)
.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArccosSimilarityAdapter.Instance<O>
Distance function instancestatic class
ArccosSimilarityAdapter.Par<O>
Parameterization class.
-
Field Summary
-
Fields inherited from class elki.distance.adapter.AbstractSimilarityAdapter
similarityFunction
-
-
Constructor Summary
Constructors Constructor Description ArccosSimilarityAdapter(NormalizedSimilarity<? super O> similarityFunction)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends O>
DistanceQuery<T>instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query.-
Methods inherited from class elki.distance.adapter.AbstractSimilarityAdapter
equals, getInputTypeRestriction, hashCode, isSymmetric
-
-
-
-
Constructor Detail
-
ArccosSimilarityAdapter
public ArccosSimilarityAdapter(NormalizedSimilarity<? super O> similarityFunction)
Constructor.- Parameters:
similarityFunction
- Similarity function
-
-
Method Detail
-
instantiate
public <T extends O> DistanceQuery<T> instantiate(Relation<T> database)
Description copied from interface:Distance
Instantiate with a database to get the actual distance query.- Specified by:
instantiate
in interfaceDistance<O>
- Specified by:
instantiate
in classAbstractSimilarityAdapter<O>
- Parameters:
database
- The representation to use- Returns:
- Actual distance query.
-
-