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

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


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_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 320 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 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, celeste::svm_node::value, and x.

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

Definition at line 263 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 267 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 279 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 271 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 275 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 243 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 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 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 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 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 254 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 24 Oct 2014 for Hugintrunk by  doxygen 1.4.7