|
PLearn 0.1
|
#include <PowDistanceKernel.h>


Public Member Functions | |
| PowDistanceKernel () | |
| PowDistanceKernel (real the_Ln) | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual PowDistanceKernel * | deepCopy (CopiesMap &copies) const |
| 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 |
| ** Subclasses must override this method ** | |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) |
| recognized option is "n" | |
Protected Attributes | |
| real | n |
| 1 for L1, 2 for L2, etc... | |
Private Types | |
| typedef Kernel | inherited |
Definition at line 53 of file PowDistanceKernel.h.
typedef Kernel PLearn::PowDistanceKernel::inherited [private] |
Reimplemented from PLearn::Kernel.
Definition at line 55 of file PowDistanceKernel.h.
| PLearn::PowDistanceKernel::PowDistanceKernel | ( | ) | [inline] |
Definition at line 61 of file PowDistanceKernel.h.
: n() {}
| PLearn::PowDistanceKernel::PowDistanceKernel | ( | real | the_Ln | ) | [inline] |
Definition at line 63 of file PowDistanceKernel.h.
: n(the_Ln) {}
| string PLearn::PowDistanceKernel::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
| OptionList & PLearn::PowDistanceKernel::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
| RemoteMethodMap & PLearn::PowDistanceKernel::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
| Object * PLearn::PowDistanceKernel::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 51 of file PowDistanceKernel.cc.
| StaticInitializer PowDistanceKernel::_static_initializer_ & PLearn::PowDistanceKernel::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
| string PLearn::PowDistanceKernel::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 51 of file PowDistanceKernel.cc.
| void PLearn::PowDistanceKernel::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
recognized option is "n"
Reimplemented from PLearn::Kernel.
Definition at line 56 of file PowDistanceKernel.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), and n.
{
declareOption(ol, "n", &PowDistanceKernel::n, OptionBase::buildoption,
"TODO: Give some comments");
inherited::declareOptions(ol);
}

| static const PPath& PLearn::PowDistanceKernel::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Kernel.
Definition at line 66 of file PowDistanceKernel.h.
| PowDistanceKernel * PLearn::PowDistanceKernel::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Kernel.
Definition at line 51 of file PowDistanceKernel.cc.
** Subclasses must override this method **
returns K(x1,x2)
Implements PLearn::Kernel.
Definition at line 53 of file PowDistanceKernel.cc.
References n, and PLearn::powdistance().
{ return powdistance(x1, x2, n); }

| OptionList & PLearn::PowDistanceKernel::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 51 of file PowDistanceKernel.cc.
| OptionMap & PLearn::PowDistanceKernel::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 51 of file PowDistanceKernel.cc.
| RemoteMethodMap & PLearn::PowDistanceKernel::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 51 of file PowDistanceKernel.cc.
| virtual string PLearn::PowDistanceKernel::info | ( | ) | const [inline, virtual] |
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().

Reimplemented from PLearn::Kernel.
Definition at line 66 of file PowDistanceKernel.h.
real PLearn::PowDistanceKernel::n [protected] |
1 for L1, 2 for L2, etc...
Definition at line 58 of file PowDistanceKernel.h.
Referenced by declareOptions().
1.7.4