yat
0.14.5pre
|
Class for polynomial kernel calculations. More...
#include <yat/classifier/PolynomialKernelFunction.h>
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 |
Class for polynomial kernel calculations.
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.
|
inlinevirtual |
Destructor
|
virtual |
returning the scalar product of two vectors in feature space using the polynomial kernel.
Implements theplu::yat::classifier::KernelFunction.
|
inlineinherited |
|
virtual |
Implements theplu::yat::classifier::KernelFunction.
|
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.
Implements theplu::yat::classifier::KernelFunction.