Machine Learning Library
|
Base class for kernel functions Base class for kernel function used for example by the support vector machine. More...
#include <CKernel.h>
Public Member Functions | |
CKernel (Type tBandwidth=-1.0) | |
virtual | ~CKernel () |
Type | bandwidth () const |
void | setBandwidth (Type tB) |
virtual Type | execute (const CVector< Type > &rtVector1, const CVector< Type > &rtVector2) const =0 |
virtual Type | execute (const CVector< Type > &rtVector1, const Type *ptVector2) const =0 |
virtual Type | execute (const Type *ptVector1, const Type *ptVector2, int iDim) const =0 |
virtual Type | execute (Type tValue) const =0 |
virtual CKernel< Type > * | clone () const =0 |
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... | |
virtual string | factoryObject ()=0 |
virtual bool | serialize (fstream &stream, IO_MODE mode) |
Read/write from binary stream. More... | |
virtual bool | serialize2 (CArchiv &tA) |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
unsigned char | ucVerbose |
Base class for kernel functions Base class for kernel function used for example by the support vector machine.
|
inline |
|
inlinevirtual |
Returns the class name.
Reimplemented from CObject< Type >.
Reimplemented in CChiSquaredKernel< Type >, CAnovaKernel< Type >, CDoubleExponentialKernel< Type >, CLinearKernel< Type >, CPolynomialKernel< Type >, CMultiVariateGaussianKernel< Type >, CTriangularKernel< Type >, CPlummerKernel< Type >, and CGaussianKernel< Type >.
Referenced by CKernel< Type >::isA().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Check if the object is an instance of the class with given name.
Reimplemented from CObject< Type >.
Reimplemented in CChiSquaredKernel< Type >, CAnovaKernel< Type >, CDoubleExponentialKernel< Type >, CLinearKernel< Type >, CPolynomialKernel< Type >, CMultiVariateGaussianKernel< Type >, CTriangularKernel< Type >, CPlummerKernel< Type >, and CGaussianKernel< Type >.
References CKernel< Type >::className(), and CObject< Type >::isA().
Referenced by CGaussianKernel< Type >::isA(), CPlummerKernel< Type >::isA(), CTriangularKernel< Type >::isA(), CMultiVariateGaussianKernel< Type >::isA(), CPolynomialKernel< Type >::isA(), CLinearKernel< Type >::isA(), CDoubleExponentialKernel< Type >::isA(), CAnovaKernel< Type >::isA(), and CChiSquaredKernel< Type >::isA().
|
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 CObject< Type >.
Reimplemented in CAnovaKernel< Type >, CPolynomialKernel< Type >, and CPlummerKernel< Type >.
Reimplemented from CObject< Type >.
Reimplemented in CAnovaKernel< Type >, CPolynomialKernel< Type >, and CPlummerKernel< Type >.
|
inline |