Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::CompactVMatrixPolynomialKernel Class Reference

#include <CompactVMatrixPolynomialKernel.h>

Inheritance diagram for PLearn::CompactVMatrixPolynomialKernel:

Inheritance graph
[legend]
Collaboration diagram for PLearn::CompactVMatrixPolynomialKernel:

Collaboration graph
[legend]
List of all members.

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< CompactVMatrixm

Private Types

typedef Kernel inherited

Detailed Description

behaves like PolynomialKernel except that the x1 and x2 vectors actually only contain INDICES of the rows of a CompactVMatrix, and the square difference is performed efficiently, taking advantage of the discrete nature of many fields.

Definition at line 59 of file CompactVMatrixPolynomialKernel.h.


Member Typedef Documentation

typedef Kernel PLearn::CompactVMatrixPolynomialKernel::inherited [private]
 

Reimplemented from PLearn::Kernel.

Definition at line 61 of file CompactVMatrixPolynomialKernel.h.


Constructor & Destructor Documentation

PLearn::CompactVMatrixPolynomialKernel::CompactVMatrixPolynomialKernel  )  [inline]
 

Definition at line 68 of file CompactVMatrixPolynomialKernel.h.

References beta, and n.

PLearn::CompactVMatrixPolynomialKernel::CompactVMatrixPolynomialKernel int  degree,
PP< CompactVMatrix > &  vm,
real  the_beta = 1.0
[inline]
 

Definition at line 70 of file CompactVMatrixPolynomialKernel.h.

References beta, m, and n.


Member Function Documentation

void PLearn::CompactVMatrixPolynomialKernel::declareOptions OptionList ol  )  [static, protected]
 

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.

real PLearn::CompactVMatrixPolynomialKernel::evaluate const Vec x1,
const Vec x2
const [virtual]
 

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.

PLearn::CompactVMatrixPolynomialKernel::PLEARN_DECLARE_OBJECT CompactVMatrixPolynomialKernel   ) 
 


Member Data Documentation

real PLearn::CompactVMatrixPolynomialKernel::beta [protected]
 

a normalization constant for numerical stability

Definition at line 65 of file CompactVMatrixPolynomialKernel.h.

Referenced by CompactVMatrixPolynomialKernel(), and evaluate().

PP<CompactVMatrix> PLearn::CompactVMatrixPolynomialKernel::m [protected]
 

Definition at line 66 of file CompactVMatrixPolynomialKernel.h.

Referenced by CompactVMatrixPolynomialKernel(), and evaluate().

int PLearn::CompactVMatrixPolynomialKernel::n [protected]
 

degree of polynomial

Definition at line 64 of file CompactVMatrixPolynomialKernel.h.

Referenced by CompactVMatrixPolynomialKernel(), and evaluate().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:20 2004 for PLearn by doxygen 1.3.7