smile.math.kernel
Class PearsonKernel
- java.lang.Object
-
- smile.math.kernel.PearsonKernel
-
- All Implemented Interfaces:
- java.io.Serializable, MercerKernel<double[]>
public class PearsonKernel extends java.lang.Object implements MercerKernel<double[]>, java.io.Serializable
The Pearson Mercer Kernel.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PearsonKernel()Constructor.PearsonKernel(double omega, double sigma)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetOmega()Get the omega parameter.doublegetSigma()Get the sigma parameter.doublek(double[] x, double[] y)Kernel function.voidsetOmega(double omega)Set the omega parameter.voidsetSigma(double sigma)Set the sigma parameter.java.lang.StringtoString()
-
-
-
Constructor Detail
-
PearsonKernel
public PearsonKernel()
Constructor.
-
PearsonKernel
public PearsonKernel(double omega, double sigma)Constructor.- Parameters:
omega- Omega value.sigma- Sigma value.
-
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
k
public double k(double[] x, double[] y)Description copied from interface:MercerKernelKernel function.- Specified by:
kin interfaceMercerKernel<double[]>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG