Machine Learning Library
Public Member Functions | Protected Attributes | List of all members
CAnovaKernel< Type > Class Template Reference

ANOVA kernel function. More...

#include <CKernel.h>

Inheritance diagram for CAnovaKernel< Type >:
CKernel< Type > CObject< Type >

Public Member Functions

 CAnovaKernel (Type tBandwidth=1, int iDegree=2)
 
 ~CAnovaKernel ()
 
CAnovaKernel< Type > & operator= (const CAnovaKernel< Type > &rtKernel)
 
 CAnovaKernel (const CAnovaKernel< Type > &rtKernel)
 
CAnovaKernel< Type > * clone () const
 
void setDegree (int iDegree)
 
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
 
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...
 
string factoryObject ()
 
bool serialize (fstream &stream, IO_MODE mode)
 Read/write from binary stream. More...
 
virtual bool serialize2 (CArchiv &tA)
 
- Public Member Functions inherited from CKernel< Type >
 CKernel (Type tBandwidth=-1.0)
 
virtual ~CKernel ()
 
Type bandwidth () const
 
void setBandwidth (Type tB)
 
- 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...
 

Protected Attributes

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

Detailed Description

template<class Type>
class CAnovaKernel< Type >

ANOVA kernel function.

Kernel function

\[ K(\mathbf{x},\mathbf{y}) = \Bigl[ \sum_{k=1}^n exp(-\frac{(x_k - y_k)^2}{\sigma}) \Bigr]^d \]

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>
CAnovaKernel< Type >::CAnovaKernel ( Type  tBandwidth = 1,
int  iDegree = 2 
)
template<class Type>
CAnovaKernel< Type >::~CAnovaKernel ( )
template<class Type>
CAnovaKernel< Type >::CAnovaKernel ( const CAnovaKernel< Type > &  rtKernel)

Member Function Documentation

template<class Type>
virtual string CAnovaKernel< Type >::className ( ) const
inlinevirtual

Returns the class name.

Reimplemented from CKernel< Type >.

Referenced by CAnovaKernel< Type >::isA().

template<class Type>
CAnovaKernel<Type>* CAnovaKernel< Type >::clone ( ) const
virtual

Implements CKernel< Type >.

template<class Type>
Type CAnovaKernel< Type >::execute ( const CVector< Type > &  rtVector1,
const CVector< Type > &  rtVector2 
) const
inlinevirtual

Implements CKernel< Type >.

template<class Type>
Type CAnovaKernel< Type >::execute ( const CVector< Type > &  rtVector1,
const Type *  ptVector2 
) const
inlinevirtual

Implements CKernel< Type >.

template<class Type>
Type CAnovaKernel< Type >::execute ( const Type *  ptVector1,
const Type *  ptVector2,
int  iDim 
) const
inlinevirtual

Implements CKernel< Type >.

template<class Type>
Type CAnovaKernel< Type >::execute ( Type  tValue) const
inlinevirtual

Implements CKernel< Type >.

template<class Type>
string CAnovaKernel< Type >::factoryObject ( )
inlinevirtual

Implements CKernel< Type >.

template<class Type>
virtual bool CAnovaKernel< Type >::isA ( const char *  acClass) const
inlinevirtual

Check if the object is an instance of the class with given name.

Reimplemented from CKernel< Type >.

References CAnovaKernel< Type >::className(), and CKernel< Type >::isA().

template<class Type>
CAnovaKernel<Type>& CAnovaKernel< Type >::operator= ( const CAnovaKernel< Type > &  rtKernel)
template<class Type>
bool CAnovaKernel< 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 CKernel< Type >.

template<class Type>
virtual bool CAnovaKernel< Type >::serialize2 ( CArchiv tA)
virtual

Reimplemented from CKernel< Type >.

template<class Type>
void CAnovaKernel< Type >::setDegree ( int  iDegree)
inline

Member Data Documentation

template<class Type>
int CAnovaKernel< Type >::iDegree
protected

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