public class SparseMaternKernel extends Matern implements MercerKernel<SparseArray>
SparseGaussianKernel,
SparseLaplacianKernel,
Serialized Form| Constructor and Description |
|---|
SparseMaternKernel(double sigma,
double nu)
Constructor.
|
SparseMaternKernel(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(SparseArray x,
SparseArray y)
Kernel function.
|
double[] |
kg(SparseArray x,
SparseArray y)
Computes the kernel and its gradient over hyperparameters.
|
double[] |
lo()
Returns the lower bound of hyperparameters.
|
SparseMaternKernel |
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 SparseMaternKernel(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 SparseMaternKernel(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(SparseArray x, SparseArray y)
MercerKernelk in interface MercerKernel<SparseArray>public double[] kg(SparseArray x, SparseArray y)
MercerKernelkg in interface MercerKernel<SparseArray>public SparseMaternKernel of(double[] params)
MercerKernelof in interface MercerKernel<SparseArray>public double[] hyperparameters()
MercerKernelhyperparameters in interface MercerKernel<SparseArray>public double[] lo()
MercerKernello in interface MercerKernel<SparseArray>public double[] hi()
MercerKernelhi in interface MercerKernel<SparseArray>