#include <LogOfGaussianDensityKernel.h>
Inheritance diagram for PLearn::LogOfGaussianDensityKernel:
Public Member Functions | |
LogOfGaussianDensityKernel () | |
LogOfGaussianDensityKernel (real the_sigma) | |
PLEARN_DECLARE_OBJECT (LogOfGaussianDensityKernel) | |
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 60 of file LogOfGaussianDensityKernel.h.
|
Reimplemented from PLearn::Kernel. Definition at line 62 of file LogOfGaussianDensityKernel.h. |
|
Definition at line 68 of file LogOfGaussianDensityKernel.h. References sigma. |
|
Definition at line 70 of file LogOfGaussianDensityKernel.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 67 of file LogOfGaussianDensityKernel.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 51 of file LogOfGaussianDensityKernel.cc. References PLearn::TVec< T >::length(), PLearn::log(), Pi, PLearn::powdistance(), sigma, and PLearn::Vec. |
|
|
|
Definition at line 65 of file LogOfGaussianDensityKernel.h. Referenced by evaluate(), and LogOfGaussianDensityKernel(). |