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

returns <x1,x2> More...

#include <DotProductKernel.h>

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

List of all members.

Public Member Functions

 DotProductKernel ()
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual DotProductKerneldeepCopy (CopiesMap &copies) const
virtual real evaluate (const Vec &x1, const Vec &x2) const
 ** Subclasses must override this method **
virtual real evaluate_i_j (int i, int j) const
 returns evaluate(data(i),data(j))
virtual real evaluate_i_x (int i, const Vec &x, real squared_norm_of_x=-1) const
 returns evaluate(data(i),x)
virtual real evaluate_x_i (const Vec &x, int i, real squared_norm_of_x=-1) const
 returns evaluate(x,data(i))

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 <x1,x2>

Definition at line 54 of file DotProductKernel.h.


Member Typedef Documentation

Reimplemented from PLearn::Kernel.

Definition at line 56 of file DotProductKernel.h.


Constructor & Destructor Documentation

PLearn::DotProductKernel::DotProductKernel ( ) [inline]

Definition at line 59 of file DotProductKernel.h.

{}

Member Function Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Object.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Object.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Kernel.

Definition at line 61 of file DotProductKernel.h.

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

Reimplemented from PLearn::Kernel.

Definition at line 52 of file DotProductKernel.cc.

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

** Subclasses must override this method **

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 54 of file DotProductKernel.cc.

References PLearn::dot().

{ return dot(x1,x2); }

Here is the call graph for this function:

real PLearn::DotProductKernel::evaluate_i_j ( int  i,
int  j 
) const [virtual]

returns evaluate(data(i),data(j))

Reimplemented from PLearn::Kernel.

Definition at line 58 of file DotProductKernel.cc.

{ return data->dot(i,j,data_inputsize); }
real PLearn::DotProductKernel::evaluate_i_x ( int  i,
const Vec x,
real  squared_norm_of_x = -1 
) const [virtual]

returns evaluate(data(i),x)

Reimplemented from PLearn::Kernel.

Definition at line 62 of file DotProductKernel.cc.

{ return data->dot(i,x); } 
real PLearn::DotProductKernel::evaluate_x_i ( const Vec x,
int  i,
real  squared_norm_of_x = -1 
) const [virtual]

returns evaluate(x,data(i))

Reimplemented from PLearn::Kernel.

Definition at line 66 of file DotProductKernel.cc.

{ return data->dot(i,x); } 
OptionList & PLearn::DotProductKernel::getOptionList ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Object.

Definition at line 52 of file DotProductKernel.cc.

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

Reimplemented from PLearn::Object.

Definition at line 52 of file DotProductKernel.cc.


Member Data Documentation

Reimplemented from PLearn::Kernel.

Definition at line 61 of file DotProductKernel.h.


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