#include <NegKernel.h>
Inheritance diagram for PLearn::NegKernel:
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 |
|
Reimplemented from PLearn::Kernel. Definition at line 55 of file NegKernel.h. |
|
Definition at line 60 of file NegKernel.h. References ker. |
|
Definition at line 62 of file NegKernel.h. References ker. |
|
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. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 64 of file NegKernel.cc. References ker, and PLearn::Vec. |
|
Definition at line 58 of file NegKernel.cc. References PLearn::deepCopyField(), and ker. |
|
|
|
Definition at line 58 of file NegKernel.h. Referenced by evaluate(), makeDeepCopyFromShallowCopy(), and NegKernel(). |