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

Constructor & Destructor Documentation

◆ Kernel()

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

Definition at line 266 of file svm.cpp.

◆ ~Kernel()

Kernel::~Kernel ( )
virtual

Definition at line 301 of file svm.cpp.

Member Function Documentation

◆ dot()

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

Definition at line 307 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 329 of file svm.cpp.

◆ kernel_linear()

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

Definition at line 244 of file svm.cpp.

◆ kernel_poly()

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

Definition at line 248 of file svm.cpp.

◆ kernel_precomputed()

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

Definition at line 260 of file svm.cpp.

◆ kernel_rbf()

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

Definition at line 252 of file svm.cpp.

◆ kernel_sigmoid()

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

Definition at line 256 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 224 of file svm.cpp.

Member Data Documentation

◆ coef0

const double Kernel::coef0
private

Definition at line 241 of file svm.cpp.

◆ degree

const int Kernel::degree
private

Definition at line 239 of file svm.cpp.

◆ gamma

const double Kernel::gamma
private

Definition at line 240 of file svm.cpp.

◆ kernel_function

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

Definition at line 231 of file svm.cpp.

◆ kernel_type

const int Kernel::kernel_type
private

Definition at line 238 of file svm.cpp.

◆ x

const svm_node** Kernel::x
private

Definition at line 234 of file svm.cpp.

◆ x_square

double* Kernel::x_square
private

Definition at line 235 of file svm.cpp.


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


ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Mon Feb 28 2022 22:46:49