smile.math.kernel
Class SparseLaplacianKernel
- java.lang.Object
-
- smile.math.kernel.SparseLaplacianKernel
-
- All Implemented Interfaces:
- java.io.Serializable, MercerKernel<SparseArray>
public class SparseLaplacianKernel extends java.lang.Object implements MercerKernel<SparseArray>, java.io.Serializable
The Laplacian Kernel. k(u, v) = e-||u-v|| / σ, where σ > 0 is the scale parameter of the kernel.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SparseLaplacianKernel(double sigma)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublek(SparseArray x, SparseArray y)Kernel function.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SparseLaplacianKernel
public SparseLaplacianKernel(double sigma)
Constructor.- Parameters:
sigma- the smooth/width parameter of Laplacian kernel.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
k
public double k(SparseArray x, SparseArray y)
Description copied from interface:MercerKernelKernel function.- Specified by:
kin interfaceMercerKernel<SparseArray>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG