Package elki.similarity.kernel
Class RationalQuadraticKernel
- java.lang.Object
-
- elki.similarity.AbstractVectorSimilarity
-
- elki.similarity.kernel.RationalQuadraticKernel
-
- All Implemented Interfaces:
PrimitiveSimilarity<NumberVector>
,Similarity<NumberVector>
public class RationalQuadraticKernel extends AbstractVectorSimilarity
Rational quadratic kernel, a less computational approximation of the Gaussian RBF kernel (RadialBasisFunctionKernel
).- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RationalQuadraticKernel.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private double
c
Constant term c.
-
Constructor Summary
Constructors Constructor Description RationalQuadraticKernel(double c)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
similarity(NumberVector o1, NumberVector o2)
Computes the similarity between two given DatabaseObjects according to this similarity function.-
Methods inherited from class elki.similarity.AbstractVectorSimilarity
getInputTypeRestriction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.similarity.PrimitiveSimilarity
instantiate
-
Methods inherited from interface elki.similarity.Similarity
isSymmetric
-
-
-
-
Method Detail
-
similarity
public double similarity(NumberVector o1, NumberVector o2)
Description copied from interface:PrimitiveSimilarity
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
-
-