#include <CompactVMatrixPolynomialKernel.h>
Inheritance diagram for PLearn::CompactVMatrixPolynomialKernel:
Public Member Functions | |
CompactVMatrixPolynomialKernel () | |
CompactVMatrixPolynomialKernel (int degree, PP< CompactVMatrix > &vm, real the_beta=1.0) | |
PLEARN_DECLARE_OBJECT (CompactVMatrixPolynomialKernel) | |
virtual real | evaluate (const Vec &x1, const Vec &x2) const |
returns K(x1,x2) | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
recognized options are "n", "beta" and "m" | |
Protected Attributes | |
int | n |
degree of polynomial | |
real | beta |
a normalization constant for numerical stability | |
PP< CompactVMatrix > | m |
Private Types | |
typedef Kernel | inherited |
Definition at line 59 of file CompactVMatrixPolynomialKernel.h.
|
Reimplemented from PLearn::Kernel. Definition at line 61 of file CompactVMatrixPolynomialKernel.h. |
|
Definition at line 68 of file CompactVMatrixPolynomialKernel.h. |
|
Definition at line 70 of file CompactVMatrixPolynomialKernel.h. |
|
recognized options are "n", "beta" and "m"
Reimplemented from PLearn::Kernel. Definition at line 59 of file CompactVMatrixPolynomialKernel.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 49 of file CompactVMatrixPolynomialKernel.cc. References beta, PLearn::dot(), PLearn::dot_product(), PLearn::ipow(), m, n, and PLearn::Vec. |
|
|
|
a normalization constant for numerical stability
Definition at line 65 of file CompactVMatrixPolynomialKernel.h. Referenced by CompactVMatrixPolynomialKernel(), and evaluate(). |
|
Definition at line 66 of file CompactVMatrixPolynomialKernel.h. Referenced by CompactVMatrixPolynomialKernel(), and evaluate(). |
|
degree of polynomial
Definition at line 64 of file CompactVMatrixPolynomialKernel.h. Referenced by CompactVMatrixPolynomialKernel(), and evaluate(). |