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

PLearn::PowDistanceKernel Class Reference

#include <PowDistanceKernel.h>

Inheritance diagram for PLearn::PowDistanceKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PowDistanceKernel ()
 PowDistanceKernel (real the_Ln)
 PLEARN_DECLARE_OBJECT (PowDistanceKernel)
virtual string info () const
 returns a bit more informative string about object (default returns classname())

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 "n"


Protected Attributes

real n
 1 for L1, 2 for L2, etc...


Private Types

typedef Kernel inherited

Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 55 of file PowDistanceKernel.h.


Constructor & Destructor Documentation

PLearn::PowDistanceKernel::PowDistanceKernel  )  [inline]
 

Definition at line 61 of file PowDistanceKernel.h.

References n.

PLearn::PowDistanceKernel::PowDistanceKernel real  the_Ln  )  [inline]
 

Definition at line 63 of file PowDistanceKernel.h.

References n.


Member Function Documentation

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

recognized option is "n"

Reimplemented from PLearn::Kernel.

Definition at line 56 of file PowDistanceKernel.cc.

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 53 of file PowDistanceKernel.cc.

References n, PLearn::powdistance(), and PLearn::Vec.

virtual string PLearn::PowDistanceKernel::info  )  const [inline, virtual]
 

returns a bit more informative string about object (default returns classname())

Reimplemented from PLearn::Object.

Definition at line 68 of file PowDistanceKernel.h.

References n, and PLearn::tostring().

PLearn::PowDistanceKernel::PLEARN_DECLARE_OBJECT PowDistanceKernel   ) 
 


Member Data Documentation

real PLearn::PowDistanceKernel::n [protected]
 

1 for L1, 2 for L2, etc...

Definition at line 58 of file PowDistanceKernel.h.

Referenced by evaluate(), info(), and PowDistanceKernel().


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