Package elki.similarity
Interface PrimitiveSimilarity<O>
-
- Type Parameters:
O
- object type
- All Superinterfaces:
Similarity<O>
- All Known Subinterfaces:
ClusteringDistanceSimilarity
,DBIDSimilarity
,NormalizedPrimitiveSimilarity<O>
- All Known Implementing Classes:
AbstractDBIDSimilarity
,AbstractVectorSimilarity
,ClusteringAdjustedRandIndexSimilarity
,ClusteringBCubedF1Similarity
,ClusteringFowlkesMallowsSimilarity
,ClusteringRandIndexSimilarity
,ClusterIntersectionSimilarity
,ClusterJaccardSimilarity
,HellingerDistance
,InvertedDistanceSimilarity
,JaccardSimilarityDistance
,Kulczynski1Similarity
,Kulczynski2Similarity
,LaplaceKernel
,LinearKernel
,PolynomialKernel
,RadialBasisFunctionKernel
,RationalQuadraticKernel
,SigmoidKernel
public interface PrimitiveSimilarity<O> extends Similarity<O>
Interface Similarity describes the requirements of any similarity function.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends O>
SimilarityQuery<T>instantiate(Relation<T> relation)
Instantiate with a representation to get the actual similarity query.double
similarity(O o1, O o2)
Computes the similarity between two given DatabaseObjects according to this similarity function.-
Methods inherited from interface elki.similarity.Similarity
getInputTypeRestriction, isSymmetric
-
-
-
-
Method Detail
-
similarity
double similarity(O o1, O o2)
Computes the similarity between two given DatabaseObjects according to this similarity function.- Parameters:
o1
- first DatabaseObjecto2
- second DatabaseObject- Returns:
- the similarity between two given DatabaseObjects according to this similarity function
-
instantiate
default <T extends O> SimilarityQuery<T> instantiate(Relation<T> relation)
Description copied from interface:Similarity
Instantiate with a representation to get the actual similarity query.- Specified by:
instantiate
in interfaceSimilarity<O>
- Parameters:
relation
- Representation to use- Returns:
- Actual distance query.
-
-