
Public Member Functions | |
| CPreProc (const char *name, const char *id) | |
| virtual | ~CPreProc () |
| virtual bool | init (CFeatures *f)=0 |
| initialize preprocessor from features | |
| virtual bool | load_init_data (FILE *src)=0 |
| initialize preprocessor from file | |
| virtual bool | save_init_data (FILE *dst)=0 |
| save init-data (like transforamtion matrices etc) to file | |
| virtual void | cleanup ()=0 |
| cleanup | |
| virtual EFeatureType | get_feature_type ()=0 |
| virtual EFeatureClass | get_feature_class ()=0 |
| const char * | get_name () const |
| return the name of the preprocessor | |
| const char * | get_id () const |
| return a FOUR letter id of the preprocessor | |
Protected Attributes | |
| const char * | preproc_name |
| const char * | preproc_id |
they have to stay in
although the dimensionality of the feature vectors is allowed change.As preprocessors might need a certain initialization they may expect that the init() function is called before anything else. The actual preprocessing is feature type dependent and thus coordinated in the sub-classes, cf. e.g. CSimplePreProc .
Definition at line 48 of file PreProc.h.
| CPreProc::CPreProc | ( | const char * | name, | |
| const char * | id | |||
| ) |
constructor
| name | preprocessor's name | |
| id | preprocessor's id |
Definition at line 15 of file PreProc.cpp.
| CPreProc::~CPreProc | ( | ) | [virtual] |
Definition at line 21 of file PreProc.cpp.
| virtual void CPreProc::cleanup | ( | ) | [pure virtual] |
cleanup
Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, CPruneVarSubMean, CSortUlongString, and CSortWordString.
| virtual EFeatureClass CPreProc::get_feature_class | ( | ) | [pure virtual] |
return feature class like Sparse,Simple,...
Implemented in CSimplePreProc< ST >, CSparsePreProc< ST >, CStringPreProc< ST >, CSimplePreProc< float64_t >, CStringPreProc< uint64_t >, and CStringPreProc< uint16_t >.
| virtual EFeatureType CPreProc::get_feature_type | ( | ) | [pure virtual] |
return feature type with which objects derived from CPreProc can deal
Implemented in CSimplePreProc< ST >, CStringPreProc< ST >, CSimplePreProc< float64_t >, CStringPreProc< uint64_t >, CStringPreProc< uint16_t >, CSimplePreProc< ST >, CSimplePreProc< ST >, CSimplePreProc< ST >, CSimplePreProc< ST >, CSimplePreProc< ST >, CStringPreProc< ST >, and CStringPreProc< ST >.
| const char* CPreProc::get_id | ( | ) | const |
| const char* CPreProc::get_name | ( | ) | const |
| virtual bool CPreProc::init | ( | CFeatures * | f | ) | [pure virtual] |
initialize preprocessor from features
Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, CPruneVarSubMean, CSortUlongString, and CSortWordString.
| virtual bool CPreProc::load_init_data | ( | FILE * | src | ) | [pure virtual] |
initialize preprocessor from file
Implemented in CLogPlusOne, CNormOne, CPCACut, CPruneVarSubMean, CSortUlongString, and CSortWordString.
| virtual bool CPreProc::save_init_data | ( | FILE * | dst | ) | [pure virtual] |
save init-data (like transforamtion matrices etc) to file
Implemented in CLogPlusOne, CNormOne, CPCACut, CPruneVarSubMean, CSortUlongString, and CSortWordString.
const char* CPreProc::preproc_id [protected] |
const char* CPreProc::preproc_name [protected] |