
public class LaplaceKernelFunction extends AbstractVectorDoubleSimilarityFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LaplaceKernelFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private double |
mgamma
Scaling factor mgamma. (= - 1/sigma)
|
| Constructor and Description |
|---|
LaplaceKernelFunction(double sigma)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleSimilarity(NumberVector<?> o1,
NumberVector<?> o2)
Computes the similarity between two given Objects according to this
similarity function.
|
getDistanceFactory, getInputTypeRestriction, similarityinstantiate, isSymmetricclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isSymmetricpublic LaplaceKernelFunction(double sigma)
sigma - Scaling parameter sigma (as in laplace kernel)public double doubleSimilarity(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleSimilarityFunctiono1 - first Objecto2 - second Object