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 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

Detailed Description

Definition at line 245 of file svm.cpp.


Constructor & Destructor Documentation

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

Definition at line 296 of file svm.cpp.

References celeste::clone(), dot(), kernel_function, kernel_linear(), kernel_poly(), kernel_precomputed(), kernel_rbf(), kernel_sigmoid(), kernel_type, celeste::LINEAR, celeste::POLY, celeste::PRECOMPUTED, celeste::RBF, celeste::SIGMOID, x, and x_square.

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

Definition at line 331 of file svm.cpp.

References x, and x_square.


Member Function Documentation

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

Definition at line 337 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 double* 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 359 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, celeste::svm_node::value, and x.

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

Definition at line 274 of file svm.cpp.

References dot(), and x.

Referenced by Kernel().

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

Definition at line 278 of file svm.cpp.

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

Referenced by Kernel().

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

Definition at line 290 of file svm.cpp.

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

Referenced by Kernel().

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

Definition at line 282 of file svm.cpp.

References dot(), gamma, x, and x_square.

Referenced by Kernel().

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

Definition at line 286 of file svm.cpp.

References coef0, dot(), gamma, and x.

Referenced by Kernel().

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 254 of file svm.cpp.

References celeste::swap(), x, and x_square.

Referenced by celeste::ONE_CLASS_Q::swap_index(), and celeste::SVC_Q::swap_index().


Member Data Documentation

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

Definition at line 271 of file svm.cpp.

Referenced by kernel_poly(), and kernel_sigmoid().

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

Definition at line 269 of file svm.cpp.

Referenced by kernel_poly().

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

Definition at line 270 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 celeste::SVR_Q::get_Q(), celeste::ONE_CLASS_Q::get_Q(), celeste::SVC_Q::get_Q(), Kernel(), celeste::ONE_CLASS_Q::ONE_CLASS_Q(), celeste::SVC_Q::SVC_Q(), and celeste::SVR_Q::SVR_Q().

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

Definition at line 268 of file svm.cpp.

Referenced by Kernel().

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

Definition at line 264 of file svm.cpp.

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

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

Definition at line 265 of file svm.cpp.

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


The documentation for this class was generated from the following file:
Generated on 3 Sep 2015 for Hugintrunk by  doxygen 1.4.7