Class PreProc defines a preprocessor interface.
Preprocessors are transformation functions that don't change the domain of the input features. These functions can be applied in-place if the input features fit in memory or can be applied on-the-fly when (depending on features) a feature caching strategy is applied. However, if the individual features are in 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 .
公有成员 | |
CPreProc (const char *name, const char *id) | |
virtual | ~CPreProc () |
virtual bool | init (CFeatures *f)=0 |
initialize preprocessor from features | |
virtual void | cleanup ()=0 |
cleanup | |
virtual EFeatureType | get_feature_type ()=0 |
virtual EFeatureClass | get_feature_class ()=0 |
virtual const char * | get_name () const |
return the name of the preprocessor | |
const char * | get_id () const |
return a FOUR letter id of the preprocessor | |
保护属性 | |
const char * | preproc_name |
const char * | preproc_id |
CPreProc | ( | const char * | name, |
const char * | id | ||
) |
~CPreProc | ( | ) | [virtual] |
在文件PreProc.cpp第23行定义。
virtual void cleanup | ( | ) | [pure virtual] |
virtual EFeatureClass get_feature_class | ( | ) | [pure virtual] |
return feature class like Sparse,Simple,...
在CSimplePreProc< ST >、CSparsePreProc< ST >、CStringPreProc< ST >、CSimplePreProc< float64_t >、CStringPreProc< uint16_t >及CStringPreProc< uint64_t >内被实现。
virtual EFeatureType get_feature_type | ( | ) | [pure virtual] |
return feature type with which objects derived from CPreProc can deal
在CSimplePreProc< ST >、CStringPreProc< ST >、CSimplePreProc< float64_t >、CStringPreProc< uint16_t >、CStringPreProc< uint64_t >、CSimplePreProc< ST >、CSimplePreProc< ST >、CSimplePreProc< ST >、CSimplePreProc< ST >、CSimplePreProc< ST >、CSimplePreProc< ST >、CStringPreProc< ST >、CStringPreProc< ST >、CStringPreProc< ST >及CStringPreProc< ST >内被实现。
virtual const char* get_name | ( | ) | const [virtual] |
virtual bool init | ( | CFeatures * | f ) | [pure virtual] |
initialize preprocessor from features
在CDecompressString< ST >、CLogPlusOne、CNormDerivativeLem3、CNormOne、CPCACut、CPruneVarSubMean、CSortUlongString及CSortWordString内被实现。
const char* preproc_id [protected] |
const char* preproc_name [protected] |