Package elki.similarity.kernel
Class LaplaceKernel
- java.lang.Object
-
- elki.similarity.AbstractVectorSimilarity
-
- elki.similarity.kernel.LaplaceKernel
-
- All Implemented Interfaces:
PrimitiveSimilarity<NumberVector>
,Similarity<NumberVector>
public class LaplaceKernel extends AbstractVectorSimilarity
Laplace / exponential radial basis function kernel.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LaplaceKernel.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private double
mgamma
Scaling factor mgamma. (= - 1/sigma)
-
Constructor Summary
Constructors Constructor Description LaplaceKernel(double sigma)
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
-
-