LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::kernelFunctor< T > Class Template Reference

This class defines a kernel functor. More...

#include <ltiKernelFunctor.h>

Inheritance diagram for lti::kernelFunctor< T >:
Inheritance graph
[legend]
Collaboration diagram for lti::kernelFunctor< T >:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class distanceFunctor More...

Public Member Functions

 kernelFunctor ()
 kernelFunctor (const kernelFunctor< T > &other)
virtual ~kernelFunctor ()
virtual const char * getTypeName () const
virtual T apply (const vector< T > &a, const vector< T > &b) const =0
kernelFunctor< T > & copy (const kernelFunctor< T > &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

template<class T>
class lti::kernelFunctor< T >

This class defines a kernel functor.

A kernel is sort of an inner product, but needs not be linear. It takes two vectors and returns a scalar. The most simple kernel is the canonical scalar product.

See also:
linearKernel, sigmoidKernel, radialKernel, polynomialKernel

For more information on kernel machines see here.


Constructor & Destructor Documentation

template<class T>
lti::kernelFunctor< T >::kernelFunctor (  ) 

default constructor

template<class T>
lti::kernelFunctor< T >::kernelFunctor ( const kernelFunctor< T > &  other  ) 

copy constructor

Parameters:
other the object to be copied
template<class T>
virtual lti::kernelFunctor< T >::~kernelFunctor (  )  [virtual]

destructor


Member Function Documentation

template<class T>
virtual T lti::kernelFunctor< T >::apply ( const vector< T > &  a,
const vector< T > &  b 
) const [pure virtual]

calculate the distance between the vectors a and b

Parameters:
a the first vector<T>
b the second vector<T>
Returns:
the kernel function value of the vectors

Implemented in lti::linearKernel, lti::polynomialKernel, lti::radialKernel, and lti::sigmoidKernel.

template<class T>
virtual functor* lti::kernelFunctor< T >::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

Reimplemented in lti::linearKernel, lti::polynomialKernel, lti::radialKernel, and lti::sigmoidKernel.

template<class T>
kernelFunctor<T>& lti::kernelFunctor< T >::copy ( const kernelFunctor< T > &  other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.

template<class T>
const parameters& lti::kernelFunctor< T >::getParameters (  )  const

returns used parameters

Reimplemented from lti::functor.

Reimplemented in lti::linearKernel, lti::polynomialKernel, lti::radialKernel, and lti::sigmoidKernel.

template<class T>
virtual const char* lti::kernelFunctor< T >::getTypeName (  )  const [virtual]

returns the name of this type ("kernelFunctor")

Reimplemented from lti::functor.

Reimplemented in lti::linearKernel, lti::polynomialKernel, lti::radialKernel, and lti::sigmoidKernel.


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

Generated on Sat Apr 10 15:26:51 2010 for LTI-Lib by Doxygen 1.6.1