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

PLearn::SigmoidPrimitiveKernel Class Reference

returns log(1+exp(c*x1.x2)) = primitive of sigmoidal kernel More...

#include <SigmoidPrimitiveKernel.h>

Inheritance diagram for PLearn::SigmoidPrimitiveKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SigmoidPrimitiveKernel ()
 SigmoidPrimitiveKernel (real the_c)
 PLEARN_DECLARE_OBJECT (SigmoidPrimitiveKernel)
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 "c"


Protected Attributes

real c
 smoothing constant


Private Types

typedef Kernel inherited

Detailed Description

returns log(1+exp(c*x1.x2)) = primitive of sigmoidal kernel

Definition at line 54 of file SigmoidPrimitiveKernel.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 56 of file SigmoidPrimitiveKernel.h.


Constructor & Destructor Documentation

PLearn::SigmoidPrimitiveKernel::SigmoidPrimitiveKernel  )  [inline]
 

Definition at line 62 of file SigmoidPrimitiveKernel.h.

References c.

PLearn::SigmoidPrimitiveKernel::SigmoidPrimitiveKernel real  the_c  )  [inline]
 

Definition at line 64 of file SigmoidPrimitiveKernel.h.

References c.


Member Function Documentation

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

recognized option is "c"

Reimplemented from PLearn::Kernel.

Definition at line 55 of file SigmoidPrimitiveKernel.cc.

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 51 of file SigmoidPrimitiveKernel.cc.

References c, PLearn::dot(), PLearn::exp(), PLearn::log(), and PLearn::Vec.

PLearn::SigmoidPrimitiveKernel::PLEARN_DECLARE_OBJECT SigmoidPrimitiveKernel   ) 
 


Member Data Documentation

real PLearn::SigmoidPrimitiveKernel::c [protected]
 

smoothing constant

Definition at line 59 of file SigmoidPrimitiveKernel.h.

Referenced by evaluate(), and SigmoidPrimitiveKernel().


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