iRoCS Toolbox  1.1.0
Static Public Member Functions
svt::BasicCVFactory< FV, PROBLEM, STDATA, MCLIST, TCLIST, KFLIST > Class Template Reference

The BasicCVFactory class is a factory, that creates the appropriate template class from given strings. More...

#include <BasicCVFactory.hh>

Collaboration diagram for svt::BasicCVFactory< FV, PROBLEM, STDATA, MCLIST, TCLIST, KFLIST >:

Static Public Member Functions

static BasicCVAdapter< FV, PROBLEM, STDATA > * create (const std::string &mcName, const std::string &tcName, const std::string &kfName)
 create an BasicCVAdapterTempl with the requested types. More...
 
template<typename STDATA2 >
static BasicCVAdapter< FV, PROBLEM, STDATA > * createFromStData (STDATA2 &stData)
 (description) More...
 

Detailed Description

template<typename FV, typename PROBLEM, typename STDATA, typename MCLIST, typename TCLIST, typename KFLIST>
class svt::BasicCVFactory< FV, PROBLEM, STDATA, MCLIST, TCLIST, KFLIST >

The BasicCVFactory class is a factory, that creates the appropriate template class from given strings.

BasicCVFactory allows to do a runtime-creation of any Combination of Multi-Class, Two-Class and Kernel-Funktion types. For this the BasicCVFactory needs the available Multi-Class types in MCLIST, the available Two-Class type in TCLIST and the available Kernel functions int KFLIST. To create these lists use MakeTTLIST for the SVM's and MakeTList for the kernels

BasicCVFactory< BasicFV, StDataASCII, MakeTTList< MultiClassSVMOneVsOne, MultiClassSVMOneVsRest>, MakeTTList< TwoClassSVMc, TwoClassSVMnu>, MakeTList< Kernel_LINEAR, Kernel_RBF, Kernel_POLY> >

Definition at line 103 of file BasicCVFactory.hh.

Member Function Documentation

◆ create()

template<typename FV , typename PROBLEM , typename STDATA , typename MCLIST , typename TCLIST , typename KFLIST >
static BasicCVAdapter<FV,PROBLEM,STDATA>* svt::BasicCVFactory< FV, PROBLEM, STDATA, MCLIST, TCLIST, KFLIST >::create ( const std::string &  mcName,
const std::string &  tcName,
const std::string &  kfName 
)
inlinestatic

create an BasicCVAdapterTempl with the requested types.

Each of the given names must match one of the classes in MCLIST, TCLIST and KFLIST

Parameters
mcNamename of MultiClass type (empty string means take first element from MCLIST)
tcNamename of TwoClass type (empty string means take first element from TCLIST)
kfNamename of Kernel function type (empty string means take first element from KFLIST)
Exceptions
UnknownClassNameErrorone of the requested classes could not be found
Returns
pointer to created BasicCVAdapterTempl object downcasted to BasicCVAdapter*. You are responsible to delete the object after usage.

Definition at line 127 of file BasicCVFactory.hh.

◆ createFromStData()

template<typename FV , typename PROBLEM , typename STDATA , typename MCLIST , typename TCLIST , typename KFLIST >
template<typename STDATA2 >
static BasicCVAdapter<FV,PROBLEM,STDATA>* svt::BasicCVFactory< FV, PROBLEM, STDATA, MCLIST, TCLIST, KFLIST >::createFromStData ( STDATA2 &  stData)
inlinestatic

(description)

Parameters

Definition at line 156 of file BasicCVFactory.hh.


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