RBF Struct Reference

RBF (Gausssian) kernel $e^{-\gamma\left|u-v\right|_2^2}$. More...

#include <kernel.h>

Inheritance diagram for RBF:

Inheritance graph
[legend]
Collaboration diagram for RBF:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RBF (REAL g=0.5)
 RBF (std::istream &is)
virtual const id_tid () const
virtual RBFcreate () const
 Create a new object using the default constructor.
virtual RBFclone () 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 REAL matrix (UINT i, UINT j) const
 The inner-product of two stored inputs with index i and j.
virtual void set_params (SVM_detail *) const

Public Attributes

REAL gamma

Protected Member Functions

virtual bool serialize (std::ostream &, ver_list &) const
virtual bool unserialize (std::istream &, ver_list &, const id_t &=NIL_ID)

Detailed Description

RBF (Gausssian) kernel $e^{-\gamma\left|u-v\right|_2^2}$.

Definition at line 153 of file kernel.h.


Constructor & Destructor Documentation

RBF REAL  g = 0.5  )  [inline, explicit]
 

Definition at line 155 of file kernel.h.

Referenced by RBF::set_params().

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

Definition at line 156 of file kernel.h.


Member Function Documentation

virtual RBF* 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

Reimplemented from Perceptron.

Definition at line 160 of file kernel.h.

virtual RBF* create  )  const [inline, virtual]
 

Create a new object using the default constructor.

The code for a derived class Derived is always

 return new Derived(); 

Reimplemented from Perceptron.

Definition at line 159 of file kernel.h.

virtual const id_t& id  )  const [virtual]
 

Returns:
Class ID string (class name)

Reimplemented from Perceptron.

virtual REAL matrix UINT  i,
UINT  j
const [inline, virtual]
 

The inner-product of two stored inputs with index i and j.

Reimplemented from Perceptron.

Definition at line 166 of file kernel.h.

References DOTPROD.

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

The inner-product of two input vectors.

Reimplemented from Perceptron.

Definition at line 162 of file kernel.h.

References lemga::kernel::norm_2().

bool serialize std::ostream &  ,
ver_list
const [protected, virtual]
 

Reimplemented from Kernel.

Definition at line 43 of file kernel.cpp.

References RBF::gamma, and SERIALIZE_PARENT.

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.

Reimplemented from Perceptron.

Definition at line 158 of file svm.cpp.

References RBF::gamma, and RBF::RBF().

bool unserialize std::istream &  ,
ver_list ,
const id_t = NIL_ID
[protected, virtual]
 

Reimplemented from Kernel.

Definition at line 48 of file kernel.cpp.

References RBF::gamma, Object::NIL_ID, and UNSERIALIZE_PARENT.


Member Data Documentation

REAL gamma
 

Definition at line 154 of file kernel.h.

Referenced by RBF::serialize(), RBF::set_params(), and RBF::unserialize().


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