yat  0.16pre
Public Member Functions | List of all members
theplu::yat::classifier::PolynomialKernelFunction Class Reference

Class for polynomial kernel calculations. More...

#include <yat/classifier/PolynomialKernelFunction.h>

Inheritance diagram for theplu::yat::classifier::PolynomialKernelFunction:
theplu::yat::classifier::KernelFunction

Public Member Functions

 PolynomialKernelFunction (int=1)
 
virtual ~PolynomialKernelFunction (void)
 
double operator() (const DataLookup1D &a1, const DataLookup1D &a2) const
 
double operator() (const DataLookup1D &x, const DataLookupWeighted1D &y) const
 
double operator() (const DataLookupWeighted1D &x, const DataLookupWeighted1D &y) const
 
double operator() (const DataLookupWeighted1D &vec_w, const DataLookup1D &vec) const
 

Detailed Description

Class for polynomial kernel calculations.

Constructor & Destructor Documentation

theplu::yat::classifier::PolynomialKernelFunction::PolynomialKernelFunction ( int  = 1)

Constructor taking the order of the polynomial as input. Default is order=1 yielding the linear kernel function.

virtual theplu::yat::classifier::PolynomialKernelFunction::~PolynomialKernelFunction ( void  )
inlinevirtual

Destructor

Member Function Documentation

double theplu::yat::classifier::PolynomialKernelFunction::operator() ( const DataLookup1D a1,
const DataLookup1D a2 
) const
virtual

returning the scalar product of two vectors in feature space using the polynomial kernel.

Returns
If order is larger than one: $ (1+x \cdot y)^{order} $
If order is one (linear): $ x \cdot y $

Implements theplu::yat::classifier::KernelFunction.

double theplu::yat::classifier::KernelFunction::operator() ( const DataLookupWeighted1D vec_w,
const DataLookup1D vec 
) const
inlineinherited
Returns
scalar product of two vector in feature space.
double theplu::yat::classifier::PolynomialKernelFunction::operator() ( const DataLookup1D x,
const DataLookupWeighted1D y 
) const
virtual
Returns
If order is larger than one: $ (1+x \cdot y)^{order} $
If order is one (linear): $ \sum w_yxy $

Implements theplu::yat::classifier::KernelFunction.

double theplu::yat::classifier::PolynomialKernelFunction::operator() ( const DataLookupWeighted1D x,
const DataLookupWeighted1D y 
) const
virtual

returning the scalar product of two vectors in feature space using the polynomial kernel with weights. Having all weights equal to unity yields the same as non-weighted version.

Returns
If order is larger than one: $ (1+x \cdot y)^{order} $
If order is one (linear): $ \sum w_xw_yxy $

Implements theplu::yat::classifier::KernelFunction.


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

Generated on Thu Jan 10 2019 02:54:19 for yat by  doxygen 1.8.11