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

Gaussian kernel function. More...

#include <CKernel.h>

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

Public Member Functions

 CGaussianKernel (Type tBandwidth=1.0)
 
 ~CGaussianKernel ()
 
 CGaussianKernel (const CGaussianKernel< Type > &tRef)
 
CGaussianKerneloperator= (const CGaussianKernel< Type > &rtKernel)
 
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 ()
 
Type gradientBandwidth (const CVector< Type > &rtVector1, const CVector< Type > &rtVector2, Type tDiagConst=0)
 
CGaussianKernel< Type > * clone () const
 
- Public Member Functions inherited from CKernel< Type >
 CKernel (Type tBandwidth=-1.0)
 
virtual ~CKernel ()
 
Type bandwidth () const
 
void setBandwidth (Type tB)
 
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 CGaussianKernel< Type >

Gaussian kernel function.

Gaussian kernel function:

\[ K(\mathbf{x},\mathbf{y}) = exp\Bigl(-\frac{\|\mathbf{x}-\mathbf{y}\|^2}{2\sigma^2}\Bigr) \]

Constructor & Destructor Documentation

template<class Type>
CGaussianKernel< Type >::CGaussianKernel ( Type  tBandwidth = 1.0)
template<class Type>
CGaussianKernel< Type >::~CGaussianKernel ( )
template<class Type>
CGaussianKernel< Type >::CGaussianKernel ( const CGaussianKernel< Type > &  tRef)

Member Function Documentation

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

Returns the class name.

Reimplemented from CKernel< Type >.

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

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

template<class Type>
Type CGaussianKernel< Type >::gradientBandwidth ( const CVector< Type > &  rtVector1,
const CVector< Type > &  rtVector2,
Type  tDiagConst = 0 
)
template<class Type>
virtual bool CGaussianKernel< 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 CGaussianKernel< Type >::className(), and CKernel< Type >::isA().

template<class Type>
CGaussianKernel& CGaussianKernel< Type >::operator= ( const CGaussianKernel< Type > &  rtKernel)

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