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

PLearn::CompactVMatrixGaussianKernel Class Reference

#include <CompactVMatrixGaussianKernel.h>

Inheritance diagram for PLearn::CompactVMatrixGaussianKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CompactVMatrixGaussianKernel ()
 CompactVMatrixGaussianKernel (real the_sigma, PP< CompactVMatrix > &vm)
 PLEARN_DECLARE_OBJECT (CompactVMatrixGaussianKernel)
virtual real evaluate (const Vec &x1, const Vec &x2) const
 returns K(x1,x2)

virtual void setParameters (Vec paramvec)
 default version produces an error


Static Protected Member Functions

void declareOptions (OptionList &ol)
 recognized option are "sigma" and "m"


Protected Attributes

real sigma
PP< CompactVMatrix > m

Private Types

typedef Kernel inherited

Detailed Description

behaves like GaussianKernel 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 CompactVMatrixGaussianKernel.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 61 of file CompactVMatrixGaussianKernel.h.


Constructor & Destructor Documentation

PLearn::CompactVMatrixGaussianKernel::CompactVMatrixGaussianKernel (   )  [inline]
 

Definition at line 68 of file CompactVMatrixGaussianKernel.h.

References m, and sigma.

PLearn::CompactVMatrixGaussianKernel::CompactVMatrixGaussianKernel (  real  the_sigma,
PP< CompactVMatrix > &  vm
)  [inline]
 

Definition at line 70 of file CompactVMatrixGaussianKernel.h.

References m, and sigma.


Member Function Documentation

void PLearn::CompactVMatrixGaussianKernel::declareOptions (  OptionList &  ol  )  [static, protected]
 

recognized option are "sigma" and "m"

Reimplemented from PLearn::Kernel.

Definition at line 83 of file CompactVMatrixGaussianKernel.cc.

References PLearn::declareOption(), and PLearn::OptionList.

real PLearn::CompactVMatrixGaussianKernel::evaluate (  const Vec &  x1,
const Vec &  x2
)  const [virtual]
 

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 51 of file CompactVMatrixGaussianKernel.cc.

References PLearn::exp(), m, PLearn::powdistance(), sigma, and PLearn::Vec.

PLearn::CompactVMatrixGaussianKernel::PLEARN_DECLARE_OBJECT (  CompactVMatrixGaussianKernel   ) 
 

void PLearn::CompactVMatrixGaussianKernel::setParameters (  Vec  paramvec  )  [virtual]
 

default version produces an error

Reimplemented from PLearn::Kernel.

Definition at line 79 of file CompactVMatrixGaussianKernel.cc.

References sigma.


Member Data Documentation

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

Definition at line 65 of file CompactVMatrixGaussianKernel.h.

Referenced by CompactVMatrixGaussianKernel(), and evaluate().

real PLearn::CompactVMatrixGaussianKernel::sigma [protected]
 

Definition at line 64 of file CompactVMatrixGaussianKernel.h.

Referenced by CompactVMatrixGaussianKernel(), evaluate(), and setParameters().


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