public class MaternKernel extends Matern implements MercerKernel<double[]>
GaussianKernel,
LaplacianKernel,
Serialized Form| Constructor and Description |
|---|
MaternKernel(double sigma,
double nu)
Constructor.
|
MaternKernel(double sigma,
double nu,
double lo,
double hi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
hi()
Returns the upper bound of hyperparameters.
|
double[] |
hyperparameters()
Returns the hyperparameters for tuning.
|
double |
k(double[] x,
double[] y)
Kernel function.
|
double[] |
kg(double[] x,
double[] y)
Computes the kernel and its gradient over hyperparameters.
|
double[] |
lo()
Returns the lower bound of hyperparameters.
|
MaternKernel |
of(double[] params)
Returns the same kind kernel with the new hyperparameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, applyAsDouble, K, K, KGapply, K, KGpublic MaternKernel(double sigma,
double nu)
sigma - The length scale of kernel.nu - The smoothness of the kernel function. Only 0.5, 1.5, 2.5 and Inf are accepted.public MaternKernel(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 k(double[] x,
double[] y)
MercerKernelk in interface MercerKernel<double[]>public double[] kg(double[] x,
double[] y)
MercerKernelkg in interface MercerKernel<double[]>public MaternKernel of(double[] params)
MercerKernelof in interface MercerKernel<double[]>public double[] hyperparameters()
MercerKernelhyperparameters in interface MercerKernel<double[]>public double[] lo()
MercerKernello in interface MercerKernel<double[]>public double[] hi()
MercerKernelhi in interface MercerKernel<double[]>