Linear Struct Reference

Linear kernel $\left<u,v\right>$. More...

#include <kernel.h>

Inheritance diagram for Linear:

Inheritance graph
[legend]
Collaboration diagram for Linear:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Linear ()
 Linear (std::istream &is)
virtual const id_tid () const
virtual Linearcreate () const
 Create a new object using the default constructor.
virtual Linearclone () const
 Create a new object by replicating itself.
virtual REAL operator() (const Input &a, const Input &b) const
 The inner-product of two input vectors.
virtual void set_params (SVM_detail *) const

Detailed Description

Linear kernel $\left<u,v\right>$.

Definition at line 68 of file kernel.h.


Constructor & Destructor Documentation

Linear  )  [inline]
 

Definition at line 69 of file kernel.h.

Linear std::istream &  is  )  [inline, explicit]
 

Definition at line 70 of file kernel.h.


Member Function Documentation

virtual Linear* clone  )  const [inline, virtual]
 

Create a new object by replicating itself.

Returns:
A pointer to the new copy.
The code for a derived class Derived is always
 return new Derived(*this); 
Though seemingly redundant, it helps to copy an object without knowing the real type of the object.
See also:
C++ FAQ Lite 20.6

Implements Kernel.

Definition at line 74 of file kernel.h.

virtual Linear* create  )  const [inline, virtual]
 

Create a new object using the default constructor.

The code for a derived class Derived is always

 return new Derived(); 

Implements Kernel.

Definition at line 73 of file kernel.h.

virtual const id_t& id  )  const [virtual]
 

Returns:
Class ID string (class name)

Implements Object.

virtual REAL operator() const Input a,
const Input b
const [inline, virtual]
 

The inner-product of two input vectors.

Implements Kernel.

Definition at line 76 of file kernel.h.

References DOTPROD.

void set_params SVM_detail *   )  const [virtual]
 

In order to keep the SVM interface simple and avoid member functions specific to kernels (e.g., set_gamma()), we use Kernel to pass kernel parameters to SVM_detail.

Implements Kernel.

Definition at line 147 of file svm.cpp.


The documentation for this struct was generated from the following files:
Generated on Wed Nov 8 08:17:33 2006 for LEMGA by  doxygen 1.4.6