Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
celeste::Kernel Class Referenceabstract
Inheritance diagram for celeste::Kernel:
Inheritance graph

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
 
- Public Member Functions inherited from celeste::QMatrix
virtual ~QMatrix ()
 

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

Constructor & Destructor Documentation

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

Definition at line 335 of file svm.cpp.

References x, and x_square.

Member Function Documentation

double celeste::Kernel::dot ( const svm_node px,
const svm_node py 
)
staticprivate
virtual Qfloat* celeste::Kernel::get_Q ( int  column,
int  len 
) const
pure virtual
virtual double* celeste::Kernel::get_QD ( ) const
pure virtual
double celeste::Kernel::k_function ( const svm_node x,
const svm_node y,
const svm_parameter param 
)
static
double celeste::Kernel::kernel_linear ( int  i,
int  j 
) const
inlineprivate

Definition at line 278 of file svm.cpp.

References dot().

Referenced by Kernel().

double celeste::Kernel::kernel_poly ( int  i,
int  j 
) const
inlineprivate

Definition at line 282 of file svm.cpp.

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

Referenced by Kernel().

double celeste::Kernel::kernel_precomputed ( int  i,
int  j 
) const
inlineprivate

Definition at line 294 of file svm.cpp.

References celeste::svm_node::value.

Referenced by Kernel().

double celeste::Kernel::kernel_rbf ( int  i,
int  j 
) const
inlineprivate

Definition at line 286 of file svm.cpp.

References dot(), gamma, and x_square.

Referenced by Kernel().

double celeste::Kernel::kernel_sigmoid ( int  i,
int  j 
) const
inlineprivate

Definition at line 290 of file svm.cpp.

References coef0, dot(), and gamma.

Referenced by Kernel().

virtual void celeste::Kernel::swap_index ( int  i,
int  j 
) const
inlinevirtual

Implements celeste::QMatrix.

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

Definition at line 258 of file svm.cpp.

References celeste::swap(), and x_square.

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

Member Data Documentation

const double celeste::Kernel::coef0
private

Definition at line 275 of file svm.cpp.

Referenced by kernel_poly(), and kernel_sigmoid().

const int celeste::Kernel::degree
private

Definition at line 273 of file svm.cpp.

Referenced by kernel_poly().

const double celeste::Kernel::gamma
private

Definition at line 274 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
const int celeste::Kernel::kernel_type
private

Definition at line 272 of file svm.cpp.

Referenced by Kernel().

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

Definition at line 268 of file svm.cpp.

Referenced by k_function(), Kernel(), and ~Kernel().

double* celeste::Kernel::x_square
private

Definition at line 269 of file svm.cpp.

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


The documentation for this class was generated from the following file: