iRoCS Toolbox  1.1.0
Static Public Member Functions
svt::BasicSVMFactoryOneClass< FV, STDATA, OCLIST, KFLIST > Class Template Reference

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

#include <BasicSVMFactoryOneClass.hh>

Collaboration diagram for svt::BasicSVMFactoryOneClass< FV, STDATA, OCLIST, KFLIST >:

Static Public Member Functions

static BasicSVMAdapter< FV, STDATA > * create (const std::string &ocName, const std::string &kfName)
 create an BasicSVMAdapterTempl with the requested types. More...
 
static BasicSVMAdapter< FV, STDATA > * createFromStData (const STDATA &stData)
 (description) More...
 

Detailed Description

template<typename FV, typename STDATA, typename OCLIST, typename KFLIST>
class svt::BasicSVMFactoryOneClass< FV, STDATA, OCLIST, KFLIST >

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

BasicSVMFactoryOneClass allows to do a runtime-creation of any Combination of One-Class and Kernel-Funktion types. For this the BasicSVMFactory needs the available One-Class type in OCLIST and the available Kernel functions int KFLIST. To create these lists use MakeTTLIST for the SVM's and MakeTList for the kernels

BasicSVMFactory< BasicFV, StDataASCII, MakeTTList< OneClassSVMPlane, SVMRegression>, MakeTList< Kernel_LINEAR, Kernel_RBF, Kernel_POLY> >

Definition at line 179 of file BasicSVMFactoryOneClass.hh.

Member Function Documentation

◆ create()

template<typename FV , typename STDATA , typename OCLIST , typename KFLIST >
static BasicSVMAdapter<FV,STDATA>* svt::BasicSVMFactoryOneClass< FV, STDATA, OCLIST, KFLIST >::create ( const std::string &  ocName,
const std::string &  kfName 
)
inlinestatic

create an BasicSVMAdapterTempl with the requested types.

Each of the given names must match one of the classes in OCLIST and KFLIST

Parameters
ocNamename of OneClass type (empty string means take first element from OCLIST)
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 BasicSVMAdapterTempl object downcasted to BasicSVMAdapter*. You are responsible to delete the object after usage.

Definition at line 201 of file BasicSVMFactoryOneClass.hh.

◆ createFromStData()

template<typename FV , typename STDATA , typename OCLIST , typename KFLIST >
static BasicSVMAdapter<FV,STDATA>* svt::BasicSVMFactoryOneClass< FV, STDATA, OCLIST, KFLIST >::createFromStData ( const STDATA &  stData)
inlinestatic

(description)

Parameters

Definition at line 225 of file BasicSVMFactoryOneClass.hh.


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