#include <PowDistanceKernel.h>
Inheritance diagram for PLearn::PowDistanceKernel:
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 |
|
Reimplemented from PLearn::Kernel. Definition at line 55 of file PowDistanceKernel.h. |
|
Definition at line 61 of file PowDistanceKernel.h. References n. |
|
Definition at line 63 of file PowDistanceKernel.h. References n. |
|
recognized option is "n"
Reimplemented from PLearn::Kernel. Definition at line 56 of file PowDistanceKernel.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 53 of file PowDistanceKernel.cc. References n, PLearn::powdistance(), and PLearn::Vec. |
|
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(). |
|
|
|
1 for L1, 2 for L2, etc...
Definition at line 58 of file PowDistanceKernel.h. Referenced by evaluate(), info(), and PowDistanceKernel(). |