Catalano.Statistics.Kernels
Class Circular
- java.lang.Object
-
- Catalano.Statistics.Kernels.Circular
-
- All Implemented Interfaces:
- IMercerKernel<double[]>, java.io.Serializable
public class Circular extends java.lang.Object implements IMercerKernel<double[]>
Circular Kernel. The circular kernel comes from a statistics perspective. It is an example of an isotropic stationary kernel and is positive definite in R^2.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Circular(double sigma)Constructs a new Circular Kernel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleFunction(double[] x, double[] y)The kernel function.doublegetSigma()Gets the kernel's sigma value.voidsetSigma(double sigma)Sets the kernel's sigma value.
-
-
-
Constructor Detail
-
Circular
public Circular(double sigma)
Constructs a new Circular Kernel.- Parameters:
sigma- Value for sigma.
-
-
Method Detail
-
getSigma
public double getSigma()
Gets the kernel's sigma value.- Returns:
- Sigma value.
-
setSigma
public void setSigma(double sigma)
Sets the kernel's sigma value.- Parameters:
sigma- Sigma value.
-
Function
public double Function(double[] x, double[] y)Description copied from interface:IMercerKernelThe kernel function.- Specified by:
Functionin interfaceIMercerKernel<double[]>- Parameters:
x- Vector x in input space.y- Vectory in input space.- Returns:
- Dot product in feature (kernel) space.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG