#include <GaussianDensityKernel.h>
Inheritance diagram for PLearn::GaussianDensityKernel:
Public Member Functions | |
GaussianDensityKernel () | |
GaussianDensityKernel (real the_sigma) | |
PLEARN_DECLARE_OBJECT (GaussianDensityKernel) | |
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 | |
real | sigma |
Private Types | |
typedef Kernel | inherited |
Definition at line 58 of file GaussianDensityKernel.h.
|
Reimplemented from PLearn::Kernel. Definition at line 60 of file GaussianDensityKernel.h. |
|
Definition at line 65 of file GaussianDensityKernel.h. References sigma. |
|
Definition at line 67 of file GaussianDensityKernel.h. References sigma. |
|
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 54 of file GaussianDensityKernel.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 51 of file GaussianDensityKernel.cc. References PLearn::exp(), PLearn::TVec< T >::length(), PLearn::log(), Log2Pi, PLearn::powdistance(), sigma, and PLearn::Vec. |
|
|
|
Definition at line 63 of file GaussianDensityKernel.h. Referenced by evaluate(), and GaussianDensityKernel(). |