public class Matern extends java.lang.Object implements IsotropicKernel
Gaussian,
Laplacian,
Serialized Form| Constructor and Description |
|---|
Matern(double sigma,
double nu,
double lo,
double hi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
f(double dist)
Computes the value of the function at x.
|
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.
|
double |
smoothness()
Returns the smoothness of kernel.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, K, KGpublic Matern(double sigma,
double nu,
double lo,
double hi)
sigma - The length scale of kernel.nu - The smoothness of the kernel function. Only 0.5, 1.5, 2.5 and Inf are accepted.
The smoothness parameter is fixed during hyperparameter for tuning.lo - The lower bound of length scale for hyperparameter tuning.hi - The upper bound of length scale for hyperparameter tuning.public double scale()
public double smoothness()
public java.lang.String toString()
toString in class java.lang.Objectpublic double f(double dist)
Functionf in interface Functionf in interface IsotropicKernelpublic double k(double dist)
IsotropicKernelk in interface IsotropicKerneldist - The distance.public double[] kg(double dist)
IsotropicKernelkg in interface IsotropicKerneldist - The distance.