Catalano.Statistics.Kernels
Class Spherical
- java.lang.Object
-
- Catalano.Statistics.Kernels.Spherical
-
- All Implemented Interfaces:
- IMercerKernel<double[]>, java.io.Serializable
public class Spherical extends java.lang.Object implements IMercerKernel<double[]>
Spherical Kernel. The spherical kernel comes from a statistics perspective. It is an example of an isotropic stationary kernel and is positive definite in R^3.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Spherical()Constructs a new Spherical kernel.Spherical(double sigma)Constructs a new Spherical kernel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleFunction(double[] x, double[] y)The kernel function.doublegetSigma()Get the kernel's sigma value.voidsetDegree(double value)Set the kernel's sigma value.
-
-
-
Constructor Detail
-
Spherical
public Spherical()
Constructs a new Spherical kernel.
-
Spherical
public Spherical(double sigma)
Constructs a new Spherical kernel.- Parameters:
sigma- Sigma value.
-
-
Method Detail
-
getSigma
public double getSigma()
Get the kernel's sigma value.- Returns:
- The kernel's sigma value.
-
setDegree
public void setDegree(double value)
Set the kernel's sigma value.- Parameters:
value- The kernel's 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