Machine Learning Library
|
Polynomial kernel function. More...
#include <CKernel.h>
Public Member Functions | |
CPolynomialKernel (Type tBandwidth=1, int iDegree=2, Type tR=0) | |
CPolynomialKernel (const CPolynomialKernel< Type > &rtKernel) | |
~CPolynomialKernel () | |
CPolynomialKernel< Type > & | operator= (const CPolynomialKernel< Type > &rtKernel) |
void | setDegree (int iDegree) |
void | setR (Type tR) |
virtual string | className () const |
Returns the class name. More... | |
virtual bool | isA (const char *acClass) const |
Check if the object is an instance of the class with given name. More... | |
CPolynomialKernel< Type > * | clone () const |
Type | execute (const CVector< Type > &rtVector1, const CVector< Type > &rtVector2) const |
Type | execute (const CVector< Type > &rtVector1, const Type *ptVector2) const |
Type | execute (const Type *ptVector1, const Type *ptVector2, int iDim) const |
Type | execute (Type tValue) const |
string | factoryObject () |
bool | serialize (fstream &stream, IO_MODE mode) |
Read/write from binary stream. More... | |
virtual bool | serialize2 (CArchiv &tA) |
![]() | |
CKernel (Type tBandwidth=-1.0) | |
virtual | ~CKernel () |
Type | bandwidth () const |
void | setBandwidth (Type tB) |
![]() | |
CObject () | |
Constructor. More... | |
virtual | ~CObject () |
Destructor. More... | |
void | setVerbose (VERBOSE_LEVEL tVerbose) |
Set the verbose level. More... | |
VERBOSE_LEVEL | verbose (void) const |
Return current verbose level. More... | |
DATATYPE | dataType () const |
Returns the template data type. More... | |
Public Attributes | |
double | dR |
int | iDegree |
Additional Inherited Members | |
![]() | |
unsigned char | ucVerbose |
Polynomial kernel function.
Polynomial kernel function:
CPolynomialKernel< Type >::CPolynomialKernel | ( | Type | tBandwidth = 1 , |
int | iDegree = 2 , |
||
Type | tR = 0 |
||
) |
CPolynomialKernel< Type >::CPolynomialKernel | ( | const CPolynomialKernel< Type > & | rtKernel | ) |
CPolynomialKernel< Type >::~CPolynomialKernel | ( | ) |
|
inlinevirtual |
Returns the class name.
Reimplemented from CKernel< Type >.
Referenced by CPolynomialKernel< Type >::isA().
|
virtual |
Implements CKernel< Type >.
|
inlinevirtual |
Implements CKernel< Type >.
|
inlinevirtual |
Implements CKernel< Type >.
|
inlinevirtual |
Implements CKernel< Type >.
|
inlinevirtual |
Implements CKernel< Type >.
|
inlinevirtual |
Implements CKernel< Type >.
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CKernel< Type >.
References CPolynomialKernel< Type >::className(), and CKernel< Type >::isA().
CPolynomialKernel<Type>& CPolynomialKernel< Type >::operator= | ( | const CPolynomialKernel< Type > & | rtKernel | ) |
|
virtual |
Read/write from binary stream.
The functions handles different data types e.g for reading float objects in a double instance, etc.
fstream | Reference to binary stream |
mode | Switches between reading and writing |
Reimplemented from CKernel< Type >.
|
virtual |
Reimplemented from CKernel< Type >.
void CPolynomialKernel< Type >::setDegree | ( | int | iDegree | ) |
void CPolynomialKernel< Type >::setR | ( | Type | tR | ) |
double CPolynomialKernel< Type >::dR |
int CPolynomialKernel< Type >::iDegree |