The Kernel_POLY class specifies a polynomial kernel function: (gamma*u'*v + coef0)^degree.
More...
#include <Kernel_POLY.hh>
|
| Kernel_POLY (double gamma=1., double coef0=0., double degree=3.) |
|
| ~Kernel_POLY () |
|
void | clearCache () const |
|
double | coef0 () const |
|
double | degree () const |
|
double | gamma () const |
|
template<typename FV > |
double | k_function (const FV &x, const FV &y) const |
|
template<typename STDATA > |
void | loadParameters (STDATA &stData) |
|
template<typename STDATA > |
void | saveParameters (STDATA &stData) const |
|
void | setCoef0 (double coef0) |
|
void | setDegree (double degree) |
|
void | setGamma (double gamma) |
|
template<typename ForwardIter , typename Accessor > |
void | updateCache (const ForwardIter &, const ForwardIter &, Accessor, ProgressReporter *) const |
|
template<typename ForwardIter1 , typename Accessor1 , typename ForwardIter2 , typename Accessor2 > |
void | updateCache (const ForwardIter1 &, const ForwardIter1 &, Accessor1, const ForwardIter2 &, const ForwardIter2 &, Accessor2, ProgressReporter *=0) const |
|
The Kernel_POLY class specifies a polynomial kernel function: (gamma*u'*v + coef0)^degree.
Definition at line 115 of file Kernel_POLY.hh.
◆ Kernel_POLY()
svt::Kernel_POLY::Kernel_POLY |
( |
double |
gamma = 1. , |
|
|
double |
coef0 = 0. , |
|
|
double |
degree = 3. |
|
) |
| |
|
inline |
◆ ~Kernel_POLY()
svt::Kernel_POLY::~Kernel_POLY |
( |
| ) |
|
|
inline |
◆ setGamma()
void svt::Kernel_POLY::setGamma |
( |
double |
gamma | ) |
|
|
inline |
◆ setCoef0()
void svt::Kernel_POLY::setCoef0 |
( |
double |
coef0 | ) |
|
|
inline |
◆ setDegree()
void svt::Kernel_POLY::setDegree |
( |
double |
degree | ) |
|
|
inline |
◆ gamma()
double svt::Kernel_POLY::gamma |
( |
| ) |
const |
|
inline |
◆ coef0()
double svt::Kernel_POLY::coef0 |
( |
| ) |
const |
|
inline |
◆ degree()
double svt::Kernel_POLY::degree |
( |
| ) |
const |
|
inline |
◆ updateCache() [1/2]
template<typename ForwardIter , typename Accessor >
void svt::Kernel_POLY::updateCache |
( |
const ForwardIter & |
, |
|
|
const ForwardIter & |
, |
|
|
Accessor |
, |
|
|
ProgressReporter * |
|
|
) |
| const |
|
inline |
◆ updateCache() [2/2]
template<typename ForwardIter1 , typename Accessor1 , typename ForwardIter2 , typename Accessor2 >
void svt::Kernel_POLY::updateCache |
( |
const ForwardIter1 & |
, |
|
|
const ForwardIter1 & |
, |
|
|
Accessor1 |
, |
|
|
const ForwardIter2 & |
, |
|
|
const ForwardIter2 & |
, |
|
|
Accessor2 |
, |
|
|
ProgressReporter * |
= 0 |
|
) |
| const |
|
inline |
◆ clearCache()
void svt::Kernel_POLY::clearCache |
( |
| ) |
const |
|
inline |
◆ k_function()
template<typename FV >
double svt::Kernel_POLY::k_function |
( |
const FV & |
x, |
|
|
const FV & |
y |
|
) |
| const |
|
inline |
◆ loadParameters()
template<typename STDATA >
void svt::Kernel_POLY::loadParameters |
( |
STDATA & |
stData | ) |
|
|
inline |
◆ saveParameters()
template<typename STDATA >
void svt::Kernel_POLY::saveParameters |
( |
STDATA & |
stData | ) |
const |
|
inline |
◆ name()
static const char* svt::Kernel_POLY::name |
( |
| ) |
|
|
inlinestatic |
◆ description()
static const char* svt::Kernel_POLY::description |
( |
| ) |
|
|
inlinestatic |
◆ getParamInfos()
static void svt::Kernel_POLY::getParamInfos |
( |
std::vector< ParamInfo > & |
p | ) |
|
|
inlinestatic |
get information about the parameters, that are used in loadParameters() and saveParameters().
The Infos are appended to the passed array
- Parameters
-
p | array of ParamInfos. The Infos will be appended to this array |
Definition at line 211 of file Kernel_POLY.hh.
◆ p_gamma
double svt::Kernel_POLY::p_gamma |
|
protected |
◆ p_coef0
double svt::Kernel_POLY::p_coef0 |
|
protected |
◆ p_degree
double svt::Kernel_POLY::p_degree |
|
protected |
The documentation for this class was generated from the following file: