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

Triangular kernel function. More...

#include <CKernel.h>

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

Public Member Functions

 CTriangularKernel (Type tBandwidth=1)
 
 ~CTriangularKernel ()
 
 CTriangularKernel (const CTriangularKernel< Type > &tRef)
 
CTriangularKerneloperator= (const CTriangularKernel< 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 ()
 
CTriangularKernel< 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 CTriangularKernel< Type >

Triangular kernel function.

Triangular kernel function:

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

Constructor & Destructor Documentation

template<class Type>
CTriangularKernel< Type >::CTriangularKernel ( Type  tBandwidth = 1)
template<class Type>
CTriangularKernel< Type >::~CTriangularKernel ( )
template<class Type>
CTriangularKernel< Type >::CTriangularKernel ( const CTriangularKernel< Type > &  tRef)

Member Function Documentation

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

Returns the class name.

Reimplemented from CKernel< Type >.

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

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

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

Implements CKernel< Type >.

template<class Type>
virtual bool CTriangularKernel< 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 CTriangularKernel< Type >::className(), and CKernel< Type >::isA().

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

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