PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Protected Attributes | Private Types
PLearn::PowDistanceKernel Class Reference

#include <PowDistanceKernel.h>

Inheritance diagram for PLearn::PowDistanceKernel:
Inheritance graph
[legend]
Collaboration diagram for PLearn::PowDistanceKernel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PowDistanceKernel ()
 PowDistanceKernel (real the_Ln)
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual PowDistanceKerneldeepCopy (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 PPathdeclaringFile ()

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

Detailed Description

Definition at line 53 of file PowDistanceKernel.h.


Member Typedef Documentation

Reimplemented from PLearn::Kernel.

Definition at line 55 of file PowDistanceKernel.h.


Constructor & Destructor Documentation

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) {}

Member Function Documentation

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.

bool PLearn::PowDistanceKernel::_isa_ ( const Object o) [static]

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);
}

Here is the call graph for this function:

static const PPath& PLearn::PowDistanceKernel::declaringFile ( ) [inline, static]

Reimplemented from PLearn::Kernel.

Definition at line 66 of file PowDistanceKernel.h.

{ return "(L"+tostring(n)+")^"+tostring(n); }
PowDistanceKernel * PLearn::PowDistanceKernel::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::Kernel.

Definition at line 51 of file PowDistanceKernel.cc.

real PLearn::PowDistanceKernel::evaluate ( const Vec x1,
const Vec x2 
) const [virtual]

** 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); }

Here is the call graph for this function:

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())

Returns:
Information about the object

Reimplemented from PLearn::Object.

Definition at line 68 of file PowDistanceKernel.h.

References n, and PLearn::tostring().

    { return "(L"+tostring(n)+")^"+tostring(n); }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from PLearn::Kernel.

Definition at line 66 of file PowDistanceKernel.h.

1 for L1, 2 for L2, etc...

Definition at line 58 of file PowDistanceKernel.h.

Referenced by declareOptions().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines