|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gregdennis.drej.Representer
public final class Representer
A representer function with a kernel K(x1, x2), a set of training data points (d1, d2, , dn), and a vector (c1, c2, , cn) of coefficients.
ƒ(x) = ∑ ciK(di, x)
| Constructor Summary | |
|---|---|
Representer(Kernel kernel,
GMatrix data,
GVector coeffs)
Constructs a new representer with the specified kernel, data matrix, and coefficients. |
|
| Method Summary | |
|---|---|
GVector |
coeffs()
Returns a copy of the vector of coefficients. |
double |
eval(GVector x)
Evaluates the function at the specified point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Representer(Kernel kernel,
GMatrix data,
GVector coeffs)
MismatchedSizeException - if number of data columns differs from number of coefficients.| Method Detail |
|---|
public GVector coeffs()
public double eval(GVector x)
Function
eval in interface Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||