Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Kernel Class Referenceabstract
Inheritance diagram for Kernel:
Inheritance graph
[legend]

Public Member Functions

virtual Qfloatget_Q (int column, int len) const =0
 
virtual double * get_QD () const =0
 
 Kernel (int l, svm_node *const *x, const svm_parameter &param)
 
virtual void swap_index (int i, int j) const
 
virtual ~Kernel ()
 
- Public Member Functions inherited from 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_precomputed (int i, int j) const
 
double kernel_rbf (int i, int j) const
 
double kernel_sigmoid (int i, int j) const
 

Static Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 236 of file svm.cpp.

Constructor & Destructor Documentation

◆ Kernel()

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

Definition at line 294 of file svm.cpp.

◆ ~Kernel()

Kernel::~Kernel ( )
virtual

Definition at line 329 of file svm.cpp.

Member Function Documentation

◆ dot()

double Kernel::dot ( const svm_node px,
const svm_node py 
)
staticprivate

Definition at line 335 of file svm.cpp.

◆ get_Q()

virtual Qfloat* Kernel::get_Q ( int  column,
int  len 
) const
pure virtual

Implements QMatrix.

Implemented in SVR_Q, ONE_CLASS_Q, and SVC_Q.

◆ get_QD()

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

Implements QMatrix.

Implemented in SVR_Q, ONE_CLASS_Q, and SVC_Q.

◆ k_function()

double Kernel::k_function ( const svm_node x,
const svm_node y,
const svm_parameter param 
)
static

Definition at line 357 of file svm.cpp.

◆ kernel_linear()

double Kernel::kernel_linear ( int  i,
int  j 
) const
inlineprivate

Definition at line 266 of file svm.cpp.

◆ kernel_poly()

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

Definition at line 270 of file svm.cpp.

◆ kernel_precomputed()

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

Definition at line 282 of file svm.cpp.

◆ kernel_rbf()

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

Definition at line 274 of file svm.cpp.

◆ kernel_sigmoid()

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

Definition at line 278 of file svm.cpp.

◆ swap_index()

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

Implements QMatrix.

Reimplemented in SVR_Q, ONE_CLASS_Q, and SVC_Q.

Definition at line 246 of file svm.cpp.

Member Data Documentation

◆ coef0

const double Kernel::coef0
private

Definition at line 263 of file svm.cpp.

◆ degree

const int Kernel::degree
private

Definition at line 261 of file svm.cpp.

◆ gamma

const double Kernel::gamma
private

Definition at line 262 of file svm.cpp.

◆ kernel_function

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

Definition at line 253 of file svm.cpp.

◆ kernel_type

const int Kernel::kernel_type
private

Definition at line 260 of file svm.cpp.

◆ x

const svm_node** Kernel::x
private

Definition at line 256 of file svm.cpp.

◆ x_square

double* Kernel::x_square
private

Definition at line 257 of file svm.cpp.


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


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:50