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

PLearn::NegKernel Class Reference

#include <NegKernel.h>

Inheritance diagram for PLearn::NegKernel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NegKernel ()
 NegKernel (const Ker &the_ker)
 PLEARN_DECLARE_OBJECT (NegKernel)
virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
virtual real evaluate (const Vec &x1, const Vec &x2) const
 returns K(x1,x2)


Static Protected Member Functions

void declareOptions (OptionList &ol)
 redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)


Protected Attributes

Ker ker

Private Types

typedef Kernel inherited

Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 55 of file NegKernel.h.


Constructor & Destructor Documentation

PLearn::NegKernel::NegKernel  )  [inline]
 

Definition at line 60 of file NegKernel.h.

References ker.

PLearn::NegKernel::NegKernel const Ker the_ker  )  [inline]
 

Definition at line 62 of file NegKernel.h.

References ker.


Member Function Documentation

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

redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)

ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); }

Reimplemented from PLearn::Kernel.

Definition at line 52 of file NegKernel.cc.

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 64 of file NegKernel.cc.

References ker, and PLearn::Vec.

void PLearn::NegKernel::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Definition at line 58 of file NegKernel.cc.

References PLearn::deepCopyField(), and ker.

PLearn::NegKernel::PLEARN_DECLARE_OBJECT NegKernel   ) 
 


Member Data Documentation

Ker PLearn::NegKernel::ker [protected]
 

Definition at line 58 of file NegKernel.h.

Referenced by evaluate(), makeDeepCopyFromShallowCopy(), and NegKernel().


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