Package libai.common.kernels
Class GaussianKernel
- java.lang.Object
-
- libai.common.kernels.GaussianKernel
-
- All Implemented Interfaces:
java.io.Serializable
,Kernel
public class GaussianKernel extends java.lang.Object implements Kernel
Gaussian Kernel or RBF kernel. Follows the form: K(x,y) = e(||x-y||^2 / (2*s^2)), where s is a parameter of this kernel, aka as sigma or standard deviation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GaussianKernel(double sigma)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
eval(Matrix A, Matrix B)
Evaluates a kernel between the two Vectors .
-