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

returns sum_i[x1_i-x2_i] More...

#include <DifferenceKernel.h>

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

List of all members.

Public Member Functions

 DifferenceKernel ()
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual DifferenceKerneldeepCopy (CopiesMap &copies) const
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_

Private Types

typedef Kernel inherited

Detailed Description

returns sum_i[x1_i-x2_i]

Definition at line 55 of file DifferenceKernel.h.


Member Typedef Documentation

Reimplemented from PLearn::Kernel.

Definition at line 57 of file DifferenceKernel.h.


Constructor & Destructor Documentation

PLearn::DifferenceKernel::DifferenceKernel ( ) [inline]

Definition at line 60 of file DifferenceKernel.h.

{}

Member Function Documentation

string PLearn::DifferenceKernel::_classname_ ( ) [static]

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

OptionList & PLearn::DifferenceKernel::_getOptionList_ ( ) [static]

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

RemoteMethodMap & PLearn::DifferenceKernel::_getRemoteMethodMap_ ( ) [static]

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

Object * PLearn::DifferenceKernel::_new_instance_for_typemap_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 54 of file DifferenceKernel.cc.

StaticInitializer DifferenceKernel::_static_initializer_ & PLearn::DifferenceKernel::_static_initialize_ ( ) [static]

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

string PLearn::DifferenceKernel::classname ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 54 of file DifferenceKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 62 of file DifferenceKernel.h.

DifferenceKernel * PLearn::DifferenceKernel::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::Kernel.

Definition at line 54 of file DifferenceKernel.cc.

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

** Subclasses must override this method **

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 55 of file DifferenceKernel.cc.

References i, and PLearn::TVec< T >::length().

{ 
    real result = 0.0;
    for(int i=0; i<x1.length(); i++)
        result += x1[i]-x2[i];
    return result;
}

Here is the call graph for this function:

OptionList & PLearn::DifferenceKernel::getOptionList ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 54 of file DifferenceKernel.cc.

OptionMap & PLearn::DifferenceKernel::getOptionMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 54 of file DifferenceKernel.cc.

RemoteMethodMap & PLearn::DifferenceKernel::getRemoteMethodMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 54 of file DifferenceKernel.cc.


Member Data Documentation

Reimplemented from PLearn::Kernel.

Definition at line 62 of file DifferenceKernel.h.


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