public class Laplacian extends java.lang.Object implements IsotropicKernel
k(u, v) = e-||u-v|| / σ
where σ > 0 is the scale parameter of the kernel.| Constructor and Description |
|---|
Laplacian(double sigma,
double lo,
double hi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
k(double dist)
Computes the isotropic kernel function.
|
double[] |
kg(double dist)
Computes the isotropic kernel function and its gradient over hyperparameters..
|
double |
scale()
Returns the length scale of kernel.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, f, K, KGpublic Laplacian(double sigma,
double lo,
double hi)
sigma - The length scale of kernel.lo - The lower bound of length scale for hyperparameter tuning.hi - The upper bound of length scale for hyperparameter tuning.public double scale()
public java.lang.String toString()
toString in class java.lang.Objectpublic double k(double dist)
IsotropicKernelk in interface IsotropicKerneldist - The distance.public double[] kg(double dist)
IsotropicKernelkg in interface IsotropicKerneldist - The distance.