Polynomial Struct Reference

#include <kernel.h>

Inheritance diagram for Polynomial:

Inheritance graph
[legend]
Collaboration diagram for Polynomial:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Polynomial (UINT d, REAL g, REAL c0)
virtual REAL operator() (const Input &a, const Input &b) const
 The inner-product of two input vectors.
virtual void set_params (SVM_detail *) const

Public Attributes

UINT degree
REAL gamma
REAL coef0

Detailed Description

Definition at line 71 of file kernel.h.


Constructor & Destructor Documentation

Polynomial UINT  d,
REAL  g,
REAL  c0
[inline]
 

Definition at line 74 of file kernel.h.


Member Function Documentation

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

The inner-product of two input vectors.

Implements Kernel.

Definition at line 77 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 151 of file svm.cpp.

References Polynomial::coef0, Polynomial::degree, and Polynomial::gamma.


Member Data Documentation

REAL coef0
 

Definition at line 73 of file kernel.h.

Referenced by Polynomial::set_params().

UINT degree
 

Definition at line 72 of file kernel.h.

Referenced by Polynomial::set_params().

REAL gamma
 

Definition at line 73 of file kernel.h.

Referenced by Polynomial::set_params().


The documentation for this struct was generated from the following files:
Generated on Mon Jan 9 23:45:24 2006 for LEMGA by  doxygen 1.4.6