Catalano.Statistics.Kernels
Class Pearson
- java.lang.Object
-
- Catalano.Statistics.Kernels.Pearson
-
- All Implemented Interfaces:
- IMercerKernel<double[]>, java.io.Serializable
public class Pearson extends java.lang.Object implements IMercerKernel<double[]>
Pearson VII universal kernel (PUK).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Pearson()Constructs a new Pearson VII universal kernel.Pearson(double omega, double sigma)Constructs a new Pearson VII universal kernel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleFunction(double[] x, double[] y)The kernel function.doublegetOmega()Get the omega parameter.doublegetSigma()Get the sigma parameter.voidsetOmega(double omega)Set the omega parameter.voidsetSigma(double sigma)Set the sigma parameter.
-
-
-
Constructor Detail
-
Pearson
public Pearson()
Constructs a new Pearson VII universal kernel.
-
Pearson
public Pearson(double omega, double sigma)Constructs a new Pearson VII universal kernel.- Parameters:
omega- The Pearson's omega parameter w. Default is 1.sigma- The Pearson's sigma parameter s. Default is 1.
-
-
Method Detail
-
getOmega
public double getOmega()
Get the omega parameter.- Returns:
- Omega parameter.
-
setOmega
public void setOmega(double omega)
Set the omega parameter.- Parameters:
omega- Omega parameter.
-
getSigma
public double getSigma()
Get the sigma parameter.- Returns:
- Sigma parameter.
-
setSigma
public void setSigma(double sigma)
Set the sigma parameter.- Parameters:
sigma- Sigma parameter.
-
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