public class SparsePolynomialKernel extends java.lang.Object implements MercerKernel<SparseArray>, java.io.Serializable
| Constructor and Description |
|---|
SparsePolynomialKernel(int degree)
Constructor with scale 1 and bias 0.
|
SparsePolynomialKernel(int degree,
double scale,
double offset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
k(SparseArray x,
SparseArray y)
Kernel function.
|
java.lang.String |
toString() |
public SparsePolynomialKernel(int degree)
public SparsePolynomialKernel(int degree,
double scale,
double offset)
public java.lang.String toString()
toString in class java.lang.Objectpublic double k(SparseArray x, SparseArray y)
MercerKernelk in interface MercerKernel<SparseArray>