latest version v1.9 - last update 10 Apr 2010 |
This class defines a radial kernel functor. More...
#include <ltiRadialKernel.h>
Classes | |
class | parameters |
the parameters for the class distanceFunctor More... | |
Public Member Functions | |
radialKernel () | |
radialKernel (const double &sigma) | |
radialKernel (const radialKernel &other) | |
virtual const char * | getTypeName () const |
virtual double | apply (const vector< double > &a, const vector< double > &b) const |
virtual functor * | clone () const |
const parameters & | getParameters () const |
This class defines a radial kernel functor.
It is defined as .
The width of the radial functions is defined through sigmasq
given in the parameters.
lti::radialKernel::radialKernel | ( | ) |
default constructor
lti::radialKernel::radialKernel | ( | const double & | sigma | ) |
constructor with parameters initialization with the given sigma (width of the kernel).
lti::radialKernel::radialKernel | ( | const radialKernel & | other | ) |
copy constructor
other | the object to be copied |
virtual double lti::radialKernel::apply | ( | const vector< double > & | a, | |
const vector< double > & | b | |||
) | const [virtual] |
calculate the distance between the vectors a and b
a | the first vector<T> | |
b | the second vector<T> |
Implements lti::kernelFunctor< double >.
virtual functor* lti::radialKernel::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Reimplemented from lti::kernelFunctor< double >.
const parameters& lti::radialKernel::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::kernelFunctor< double >.
virtual const char* lti::radialKernel::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("radialKernel")
Reimplemented from lti::kernelFunctor< double >.