Catalano.Statistics.Kernels
Class Gaussian
- java.lang.Object
-
- Catalano.Statistics.Kernels.Gaussian
-
- All Implemented Interfaces:
- IMercerKernel<double[]>, java.io.Serializable
public class Gaussian extends java.lang.Object implements IMercerKernel<double[]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Gaussian()Constructs a new Gaussian Kernel.Gaussian(double gamma)Constructs a new Gaussian Kernel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleFunction(double[] x, double[] y)Gaussian Kernel function.doublegetGamma()Gets the gamma value for the kernel.voidsetGamma(double gamma)Sets the gamma value for the kernel.
-
-
-
Constructor Detail
-
Gaussian
public Gaussian()
Constructs a new Gaussian Kernel.
-
Gaussian
public Gaussian(double gamma)
Constructs a new Gaussian Kernel.- Parameters:
gamma- The smooth of the Gaussian Kernel.
-
-
Method Detail
-
getGamma
public double getGamma()
Gets the gamma value for the kernel.- Returns:
- Gamma value.
-
setGamma
public void setGamma(double gamma)
Sets the gamma value for the kernel.- Parameters:
gamma- Gamma value.
-
Function
public double Function(double[] x, double[] y)Gaussian Kernel function.- Specified by:
Functionin interfaceIMercerKernel<double[]>- Parameters:
x- Vectorx in input space.y- Vectory in input space.- Returns:
- Dot product in feature (kernel) space.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG