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 29 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 () |
CSimplePreProc< ST >::CSimplePreProc | ( | const char * | name, | |
const char * | id | |||
) |
constructor
name | simple preprocessor's name | |
id | simple preprocessor's id |
Definition at line 37 of file SimplePreProc.h.
virtual ST* CSimplePreProc< 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* CSimplePreProc< 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, CNormOne, CPCACut, and CPruneVarSubMean.
virtual EFeatureClass CSimplePreProc< ST >::get_feature_class | ( | ) | [virtual] |
return that we are simple features (just fixed size matrices)
Implements CPreProc.
Definition at line 50 of file SimplePreProc.h.
EFeatureType CSimplePreProc< uint64_t >::get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 80 of file SimplePreProc.h.
EFeatureType CSimplePreProc< uint8_t >::get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 75 of file SimplePreProc.h.
EFeatureType CSimplePreProc< char >::get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 70 of file SimplePreProc.h.
EFeatureType CSimplePreProc< uint16_t >::get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 65 of file SimplePreProc.h.
EFeatureType CSimplePreProc< int16_t >::get_feature_type | ( | ) | [virtual] |
return feature type with which objects derived from CPreProc can deal
Implements CPreProc.
Definition at line 60 of file SimplePreProc.h.
virtual EFeatureType CSimplePreProc< ST >::get_feature_type | ( | ) | [virtual] |
return feature type
Implements CPreProc.