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

PLearn::ConvexBasisKernel Class Reference

returns prod_i log(1+exp(c*(x1[i]-x2[i]))) NOTE: IT IS NOT SYMMETRIC! More...

#include <ConvexBasisKernel.h>

Inheritance diagram for PLearn::ConvexBasisKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConvexBasisKernel ()
 ConvexBasisKernel (real the_c)
 PLEARN_DECLARE_OBJECT (ConvexBasisKernel)
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 prod_i log(1+exp(c*(x1[i]-x2[i]))) NOTE: IT IS NOT SYMMETRIC!

Definition at line 55 of file ConvexBasisKernel.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 57 of file ConvexBasisKernel.h.


Constructor & Destructor Documentation

PLearn::ConvexBasisKernel::ConvexBasisKernel  )  [inline]
 

Definition at line 63 of file ConvexBasisKernel.h.

References c.

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

Definition at line 65 of file ConvexBasisKernel.h.

References c.


Member Function Documentation

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

recognized option is "c"

Reimplemented from PLearn::Kernel.

Definition at line 62 of file ConvexBasisKernel.cc.

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 51 of file ConvexBasisKernel.cc.

References c, PLearn::TVec< T >::data(), PLearn::exp(), PLearn::TVec< T >::length(), PLearn::log(), and PLearn::Vec.

PLearn::ConvexBasisKernel::PLEARN_DECLARE_OBJECT ConvexBasisKernel   ) 
 


Member Data Documentation

real PLearn::ConvexBasisKernel::c [protected]
 

smoothing constant

Definition at line 60 of file ConvexBasisKernel.h.

Referenced by ConvexBasisKernel(), and evaluate().


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