|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gregdennis.drej.PolynomialKernel
public final class PolynomialKernel
A polymonial kernel of the following form:
K(x1, x2) = (x1 · x2 + 1)d
| Field Summary | |
|---|---|
static PolynomialKernel |
CUBIC_KERNEL
Polynomial kernel of degree 3. |
static PolynomialKernel |
QUADRATIC_KERNEL
Polynomial kernel of degree 2. |
| Constructor Summary | |
|---|---|
PolynomialKernel(int degree)
Construct a polynomial kernel with the specified degree. |
|
| Method Summary | |
|---|---|
int |
degree()
Returns the degree of this polynomial kernel. |
double |
eval(GVector x1,
GVector x2)
Evaluates the kernel function at the specified points. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PolynomialKernel QUADRATIC_KERNEL
public static final PolynomialKernel CUBIC_KERNEL
| Constructor Detail |
|---|
public PolynomialKernel(int degree)
| Method Detail |
|---|
public int degree()
public double eval(GVector x1,
GVector x2)
Kernel
eval in interface Kernel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||