Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

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 ()
 PLEARN_DECLARE_OBJECT (DotProductKernel)
virtual real evaluate (const Vec &x1, const Vec &x2) const
 returns K(x1,x2)

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


Private Types

typedef Kernel inherited

Detailed Description

returns <x1,x2>

Definition at line 54 of file DotProductKernel.h.


Member Typedef Documentation

typedef Kernel PLearn::DotProductKernel::inherited [private]
 

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

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 51 of file DotProductKernel.cc.

References PLearn::dot(), and PLearn::Vec.

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 55 of file DotProductKernel.cc.

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 59 of file DotProductKernel.cc.

References 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 63 of file DotProductKernel.cc.

References x.

PLearn::DotProductKernel::PLEARN_DECLARE_OBJECT DotProductKernel   ) 
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:24 2004 for PLearn by doxygen 1.3.7