Interface IsotropicKernel
- All Superinterfaces:
Function, Serializable
- All Known Implementing Classes:
BinarySparseGaussianKernel, BinarySparseLaplacianKernel, BinarySparseMaternKernel, BinarySparseThinPlateSplineKernel, Gaussian, GaussianKernel, Laplacian, LaplacianKernel, Matern, MaternKernel, SparseGaussianKernel, SparseLaplacianKernel, SparseMaternKernel, SparseThinPlateSplineKernel, ThinPlateSpline, ThinPlateSplineKernel
Isotropic kernel. If the kernel is a function only of the distance
|x − y|, it is called isotropic. It is thus invariant
to all rigid motions.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleapply(double dist) Computes the kernel function.default doublef(double dist) Computes the value of the function at x.doublek(double dist) Computes the isotropic kernel function.default DenseMatrixK(DenseMatrix pdist) Computes the kernel matrix.double[]kg(double dist) Computes the isotropic kernel function and its gradient over hyperparameters.default DenseMatrix[]KG(DenseMatrix pdist) Computes the kernel and gradient matrices.
-
Method Details
-
f
-
k
double k(double dist) Computes the isotropic kernel function.- Parameters:
dist- The distance.- Returns:
- the kernel value.
-
kg
double[] kg(double dist) Computes the isotropic kernel function and its gradient over hyperparameters.- Parameters:
dist- The distance.- Returns:
- the kernel value and gradient.
-
apply
-
K
Computes the kernel matrix.- Parameters:
pdist- The pairwise distance matrix.- Returns:
- The kernel matrix.
-
KG
Computes the kernel and gradient matrices.- Parameters:
pdist- The pairwise distance matrix.- Returns:
- the kernel and gradient matrices.
-