latest version v1.9 - last update 10 Apr 2010 |
This class defines a kernel functor. More...
#include <ltiKernelFunctor.h>
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 functor * | clone () const |
const parameters & | getParameters () const |
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.
For more information on kernel machines see here.
lti::kernelFunctor< T >::kernelFunctor | ( | ) |
default constructor
lti::kernelFunctor< T >::kernelFunctor | ( | const kernelFunctor< T > & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::kernelFunctor< T >::~kernelFunctor | ( | ) | [virtual] |
destructor
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
a | the first vector<T> | |
b | the second vector<T> |
Implemented in lti::linearKernel, lti::polynomialKernel, lti::radialKernel, and lti::sigmoidKernel.
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.
kernelFunctor<T>& lti::kernelFunctor< T >::copy | ( | const kernelFunctor< T > & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
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.
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.