Machine Learning Library
Public Member Functions | List of all members
CKernel< Type > Class Template Referenceabstract

Base class for kernel functions Base class for kernel function used for example by the support vector machine. More...

#include <CKernel.h>

Inheritance diagram for CKernel< Type >:
CObject< Type > CAnovaKernel< Type > CChiSquaredKernel< Type > CDoubleExponentialKernel< Type > CEpanechnikovKernel< Type > CGaussianKernel< Type > CLinearKernel< Type > CMultiVariateGaussianKernel< Type > CPlummerKernel< Type > CPolynomialKernel< Type > CTriangularKernel< Type >

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)
 
- Public Member Functions inherited from CObject< Type >
 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

- Protected Attributes inherited from CObject< Type >
unsigned char ucVerbose
 

Detailed Description

template<class Type>
class CKernel< Type >

Base class for kernel functions Base class for kernel function used for example by the support vector machine.

Author
Thorsten Twellmann ttwel.nosp@m.lma@.nosp@m.TechF.nosp@m.ak.U.nosp@m.ni-Bi.nosp@m.elef.nosp@m.eld.d.nosp@m.e

Constructor & Destructor Documentation

template<class Type>
CKernel< Type >::CKernel ( Type  tBandwidth = -1.0)
template<class Type>
virtual CKernel< Type >::~CKernel ( )
inlinevirtual

Member Function Documentation

template<class Type>
Type CKernel< Type >::bandwidth ( ) const
inline
template<class Type>
virtual string CKernel< Type >::className ( ) const
inlinevirtual
template<class Type>
virtual CKernel<Type>* CKernel< Type >::clone ( ) const
pure virtual
template<class Type>
virtual Type CKernel< Type >::execute ( const CVector< Type > &  rtVector1,
const CVector< Type > &  rtVector2 
) const
pure virtual
template<class Type>
virtual Type CKernel< Type >::execute ( const CVector< Type > &  rtVector1,
const Type *  ptVector2 
) const
pure virtual
template<class Type>
virtual Type CKernel< Type >::execute ( const Type *  ptVector1,
const Type *  ptVector2,
int  iDim 
) const
pure virtual
template<class Type>
virtual Type CKernel< Type >::execute ( Type  tValue) const
pure virtual
template<class Type>
virtual string CKernel< Type >::factoryObject ( )
pure virtual
template<class Type>
virtual bool CKernel< Type >::isA ( const char *  acClass) const
inlinevirtual
template<class Type>
virtual bool CKernel< Type >::serialize ( fstream &  stream,
IO_MODE  mode 
)
virtual

Read/write from binary stream.

The functions handles different data types e.g for reading float objects in a double instance, etc.

Parameters
fstreamReference to binary stream
modeSwitches between reading and writing
Returns
True if successful, false otherwise

Reimplemented from CObject< Type >.

Reimplemented in CAnovaKernel< Type >, CPolynomialKernel< Type >, and CPlummerKernel< Type >.

template<class Type>
virtual bool CKernel< Type >::serialize2 ( CArchiv tA)
virtual
template<class Type>
void CKernel< Type >::setBandwidth ( Type  tB)
inline

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