celeste::Kernel Class Reference

Inheritance diagram for celeste::Kernel:

Inheritance graph
[legend]
List of all members.

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 Qfloatget_QD () const =0
virtual void swap_index (int i, int j) const

Static Public Member Functions

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

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

celeste::Kernel::Kernel int  l,
svm_node *const *  x,
const svm_parameter param
 

Definition at line 285 of file svm.cpp.

References celeste::clone(), dot(), kernel_function, kernel_type, celeste::LINEAR, celeste::POLY, celeste::PRECOMPUTED, celeste::RBF, celeste::SIGMOID, x, and x_square.

celeste::Kernel::~Kernel  )  [virtual]
 

Definition at line 320 of file svm.cpp.


Member Function Documentation

double celeste::Kernel::dot const svm_node px,
const svm_node py
[static, private]
 

Definition at line 326 of file svm.cpp.

References celeste::svm_node::index, and celeste::svm_node::value.

Referenced by k_function(), Kernel(), kernel_linear(), kernel_poly(), kernel_rbf(), and kernel_sigmoid().

virtual Qfloat* celeste::Kernel::get_Q int  column,
int  len
const [pure virtual]
 

Implements celeste::QMatrix.

Implemented in celeste::SVC_Q, celeste::ONE_CLASS_Q, and celeste::SVR_Q.

virtual Qfloat* celeste::Kernel::get_QD  )  const [pure virtual]
 

Implements celeste::QMatrix.

Implemented in celeste::SVC_Q, celeste::ONE_CLASS_Q, and celeste::SVR_Q.

double celeste::Kernel::k_function const svm_node x,
const svm_node y,
const svm_parameter param
[static]
 

Definition at line 348 of file svm.cpp.

References celeste::svm_parameter::coef0, celeste::svm_parameter::degree, dot(), celeste::svm_parameter::gamma, celeste::svm_node::index, celeste::svm_parameter::kernel_type, celeste::LINEAR, celeste::POLY, celeste::powi(), celeste::PRECOMPUTED, celeste::RBF, celeste::SIGMOID, and celeste::svm_node::value.

double celeste::Kernel::kernel_linear int  i,
int  j
const [inline, private]
 

Definition at line 263 of file svm.cpp.

References dot().

double celeste::Kernel::kernel_poly int  i,
int  j
const [inline, private]
 

Definition at line 267 of file svm.cpp.

References coef0, degree, dot(), gamma, and celeste::powi().

double celeste::Kernel::kernel_precomputed int  i,
int  j
const [inline, private]
 

Definition at line 279 of file svm.cpp.

References celeste::svm_node::value.

double celeste::Kernel::kernel_rbf int  i,
int  j
const [inline, private]
 

Definition at line 271 of file svm.cpp.

References dot(), gamma, and x_square.

double celeste::Kernel::kernel_sigmoid int  i,
int  j
const [inline, private]
 

Definition at line 275 of file svm.cpp.

References coef0, dot(), and gamma.

virtual void celeste::Kernel::swap_index int  i,
int  j
const [inline, virtual]
 

Implements celeste::QMatrix.

Reimplemented in celeste::SVC_Q, celeste::ONE_CLASS_Q, and celeste::SVR_Q.

Definition at line 243 of file svm.cpp.

References celeste::swap(), and x_square.


Member Data Documentation

const double celeste::Kernel::coef0 [private]
 

Definition at line 260 of file svm.cpp.

Referenced by kernel_poly(), and kernel_sigmoid().

const int celeste::Kernel::degree [private]
 

Definition at line 258 of file svm.cpp.

Referenced by kernel_poly().

const double celeste::Kernel::gamma [private]
 

Definition at line 259 of file svm.cpp.

Referenced by kernel_poly(), kernel_rbf(), and kernel_sigmoid().

double(Kernel::* celeste::Kernel::kernel_function)(int i, int j) const [protected]
 

Referenced by Kernel().

const int celeste::Kernel::kernel_type [private]
 

Definition at line 257 of file svm.cpp.

Referenced by Kernel().

const svm_node** celeste::Kernel::x [private]
 

Definition at line 253 of file svm.cpp.

Referenced by Kernel().

double* celeste::Kernel::x_square [private]
 

Definition at line 254 of file svm.cpp.

Referenced by Kernel(), kernel_rbf(), and swap_index().


The documentation for this class was generated from the following file:
Generated on Sat Apr 19 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1