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

lti::polynomialKernel Class Reference

This class defines a polynomial kernel functor. More...

#include <ltiPolynomialKernel.h>

Inheritance diagram for lti::polynomialKernel:
Inheritance graph
[legend]
Collaboration diagram for lti::polynomialKernel:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class kernelFunctor More...

Public Member Functions

 polynomialKernel ()
 polynomialKernel (const int degree)
 polynomialKernel (const polynomialKernel &other)
virtual const char * getTypeName () const
virtual double apply (const vector< double > &a, const vector< double > &b) const
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

This class defines a polynomial kernel functor.

It is defined as $ K(A,B) = \left( 1 + A \cdot B \right)^d$ with A and B vectors and d an integer given in the parameters.


Constructor & Destructor Documentation

lti::polynomialKernel::polynomialKernel (  ) 

default constructor

lti::polynomialKernel::polynomialKernel ( const int  degree  ) 

Constructor to create a polynomial kernel of the given degree.

lti::polynomialKernel::polynomialKernel ( const polynomialKernel other  ) 

copy constructor

Parameters:
other the object to be copied

Member Function Documentation

virtual double lti::polynomialKernel::apply ( const vector< double > &  a,
const vector< double > &  b 
) const [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

Implements lti::kernelFunctor< double >.

virtual functor* lti::polynomialKernel::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Reimplemented from lti::kernelFunctor< double >.

const parameters& lti::polynomialKernel::getParameters (  )  const

returns used parameters

Reimplemented from lti::kernelFunctor< double >.

virtual const char* lti::polynomialKernel::getTypeName (  )  const [virtual]

returns the name of this type ("polynomialKernel")

Reimplemented from lti::kernelFunctor< double >.


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

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