public class SparsePolynomialKernel extends Object implements MercerKernel<SparseArray>
| 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.
|
String |
toString() |
public SparsePolynomialKernel(int degree)
public SparsePolynomialKernel(int degree,
double scale,
double offset)
public double k(SparseArray x, SparseArray y)
MercerKernelk in interface MercerKernel<SparseArray>Copyright © 2015. All rights reserved.