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

PLearn::NormalizedDotProductKernel Class Reference

#include <NormalizedDotProductKernel.h>

Inheritance diagram for PLearn::NormalizedDotProductKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NormalizedDotProductKernel (real the_norm=2.0)
 PLEARN_DECLARE_OBJECT (NormalizedDotProductKernel)
virtual real evaluate (const Vec &x1, const Vec &x2) const
 returns K(x1,x2)


Static Protected Member Functions

void declareOptions (OptionList &ol)
 recognized option is "norm_to_use"


Protected Attributes

real norm_to_use

Private Types

typedef Kernel inherited

Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 55 of file NormalizedDotProductKernel.h.


Constructor & Destructor Documentation

PLearn::NormalizedDotProductKernel::NormalizedDotProductKernel real  the_norm = 2.0  )  [inline]
 

Definition at line 61 of file NormalizedDotProductKernel.h.

References norm_to_use.


Member Function Documentation

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

recognized option is "norm_to_use"

Reimplemented from PLearn::Kernel.

Definition at line 54 of file NormalizedDotProductKernel.cc.

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 51 of file NormalizedDotProductKernel.cc.

References PLearn::dot(), PLearn::norm(), norm_to_use, and PLearn::Vec.

PLearn::NormalizedDotProductKernel::PLEARN_DECLARE_OBJECT NormalizedDotProductKernel   ) 
 


Member Data Documentation

real PLearn::NormalizedDotProductKernel::norm_to_use [protected]
 

Definition at line 58 of file NormalizedDotProductKernel.h.

Referenced by evaluate(), and NormalizedDotProductKernel().


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