ECOCPAK v0.9
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
Kernel Class Reference
Inheritance diagram for Kernel:
QMatrix ONE_CLASS_Q SVC_Q SVR_Q

Public Member Functions

 Kernel (int l, svm_node *const *x, const svm_parameter &param)
virtual ~Kernel ()
virtual Qfloatget_Q (int column, int len) const =0
virtual double * get_QD () const =0
virtual void swap_index (int i, int j) const

Static Public Member Functions

static double k_function (const svm_node *x, const svm_node *y, const svm_parameter &param)

Protected Attributes

double(Kernel::* kernel_function )(int i, int j) const

Private Member Functions

double kernel_linear (int i, int j) const
double kernel_poly (int i, int j) const
double kernel_rbf (int i, int j) const
double kernel_sigmoid (int i, int j) const
double kernel_precomputed (int i, int j) const

Static Private Member Functions

static double dot (const svm_node *px, const svm_node *py)

Private Attributes

const svm_node ** x
double * x_square
const int kernel_type
const int degree
const double gamma
const double coef0

Constructor & Destructor Documentation

Kernel::Kernel ( int  l,
svm_node *const *  x,
const svm_parameter param 
)
Kernel::~Kernel ( ) [virtual]

Member Function Documentation

double Kernel::dot ( const svm_node px,
const svm_node py 
) [static, private]
virtual Qfloat* Kernel::get_Q ( int  column,
int  len 
) const [pure virtual]

Implements QMatrix.

Implemented in SVC_Q, ONE_CLASS_Q, and SVR_Q.

virtual double* Kernel::get_QD ( ) const [pure virtual]

Implements QMatrix.

Implemented in SVC_Q, ONE_CLASS_Q, and SVR_Q.

double Kernel::k_function ( const svm_node x,
const svm_node y,
const svm_parameter param 
) [static]
double Kernel::kernel_linear ( int  i,
int  j 
) const [inline, private]
double Kernel::kernel_poly ( int  i,
int  j 
) const [inline, private]
double Kernel::kernel_precomputed ( int  i,
int  j 
) const [inline, private]
double Kernel::kernel_rbf ( int  i,
int  j 
) const [inline, private]
double Kernel::kernel_sigmoid ( int  i,
int  j 
) const [inline, private]
virtual void Kernel::swap_index ( int  i,
int  j 
) const [inline, virtual]

Implements QMatrix.

Reimplemented in SVC_Q, ONE_CLASS_Q, and SVR_Q.


Field Documentation

const double Kernel::coef0 [private]
const int Kernel::degree [private]
const double Kernel::gamma [private]
double(Kernel::* Kernel::kernel_function)(int i, int j) const [protected]
const int Kernel::kernel_type [private]
const svm_node** Kernel::x [private]
double* Kernel::x_square [private]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerator Defines