Template class SimplePreProc, base class for preprocessors (cf. CPreProc) that apply to CSimpleFeatures (i.e. rectangular dense matrices).
Two new functions apply_to_feature_vector() and apply_to_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSimpleFeatures. For examples see e.g. CLogPlusOne or CPCACut.
Definition at line 31 of file SimplePreProc.h.
Public Member Functions | |
CSimplePreProc (const char *name, const char *id) | |
virtual ST * | apply_to_feature_matrix (CFeatures *f)=0 |
virtual ST * | apply_to_feature_vector (ST *f, int32_t &len)=0 |
virtual EFeatureClass | get_feature_class () |
return that we are simple features (just fixed size matrices) | |
virtual EFeatureType | get_feature_type () |
return feature type | |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
CSimplePreProc | ( | const char * | name, | |
const char * | id | |||
) |
constructor
name | simple preprocessor's name | |
id | simple preprocessor's id |
Definition at line 39 of file SimplePreProc.h.
virtual ST* apply_to_feature_matrix | ( | CFeatures * | f | ) | [pure virtual] |
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, and CPruneVarSubMean.
virtual ST* apply_to_feature_vector | ( | ST * | f, | |
int32_t & | len | |||
) | [pure virtual] |
apply preproc on single feature vector result in feature matrix
Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, and CPruneVarSubMean.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return that we are simple features (just fixed size matrices)
Implements CPreProc.
Definition at line 52 of file SimplePreProc.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 72 of file SimplePreProc.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 67 of file SimplePreProc.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 62 of file SimplePreProc.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 57 of file SimplePreProc.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type
Implements CPreProc.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 77 of file SimplePreProc.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 82 of file SimplePreProc.h.