
Definition at line 27 of file Features.h.
Public Member Functions | |
| CFeatures (INT size) | |
| CFeatures (const CFeatures &orig) | |
| CFeatures (CHAR *fname) | |
| virtual CFeatures * | duplicate () const =0 |
| virtual | ~CFeatures () |
| virtual EFeatureType | get_feature_type ()=0 |
| virtual EFeatureClass | get_feature_class ()=0 |
| virtual INT | add_preproc (CPreProc *p) |
| set preprocessor | |
| virtual CPreProc * | del_preproc (INT num) |
| del current preprocessor | |
| CPreProc * | get_preproc (INT num) |
| get current preprocessor | |
| void | set_preprocessed (INT num) |
| bool | is_preprocessed (INT num) |
| INT | get_num_preprocessed () |
| get whether specified preprocessor (or all if num=1) was/were already applied | |
| INT | get_num_preproc () |
| void | clean_preprocs () |
| clears all preprocs | |
| INT | get_cache_size () |
| virtual INT | get_num_vectors ()=0 |
| virtual bool | reshape (INT num_features, INT num_vectors) |
| virtual INT | get_size ()=0 |
| void | list_feature_obj () |
| virtual bool | load (CHAR *fname) |
| virtual bool | save (CHAR *fname) |
| bool | check_feature_compatibility (CFeatures *f) |
Static Public Attributes | |
| static CParallel | parallel |
| static CIO | io |
| static CVersion | version |
| CFeatures::CFeatures | ( | INT | size | ) |
| CFeatures::CFeatures | ( | const CFeatures & | orig | ) |
copy constructor
Definition at line 25 of file Features.cpp.
| CFeatures::CFeatures | ( | CHAR * | fname | ) |
constructor
| fname | filename to load features from |
Definition at line 33 of file Features.cpp.
| CFeatures::~CFeatures | ( | ) | [virtual] |
Definition at line 41 of file Features.cpp.
| virtual CFeatures* CFeatures::duplicate | ( | ) | const [pure virtual] |
duplicate feature object
abstract base method
Implemented in CCombinedFeatures, CSimpleFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, CSimpleFeatures< unsigned short int >, CSparseFeatures< double >, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
| virtual EFeatureType CFeatures::get_feature_type | ( | ) | [pure virtual] |
get feature type
abstract base method
Implemented in CByteFeatures, CCombinedFeatures, CShortFeatures, CSimpleFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, CSimpleFeatures< unsigned short int >, CSparseFeatures< double >, CStringFeatures< unsigned char >, CStringFeatures< unsigned short int >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSimpleFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, CStringFeatures< ST >, and CStringFeatures< ST >.
| virtual EFeatureClass CFeatures::get_feature_class | ( | ) | [pure virtual] |
get feature class
abstract base method
Implemented in CCombinedFeatures, CSimpleFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, CSimpleFeatures< unsigned short int >, CSparseFeatures< double >, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
set preprocessor
add preprocessor
| p | preprocessor to set |
Definition at line 48 of file Features.cpp.
del current preprocessor
delete preprocessor from list caller has to clean up returned preproc
| num | index of preprocessor in list |
Definition at line 107 of file Features.cpp.
get current preprocessor
get specified preprocessor
| num | index of preprocessor in list |
Definition at line 78 of file Features.cpp.
| void CFeatures::set_preprocessed | ( | INT | num | ) |
set applied flag for preprocessor
| num | index of preprocessor in list |
Definition at line 95 of file Features.h.
| bool CFeatures::is_preprocessed | ( | INT | num | ) |
get whether specified preprocessor was already applied
| num | index of preprocessor in list |
Definition at line 101 of file Features.h.
| INT CFeatures::get_num_preprocessed | ( | ) |
get whether specified preprocessor (or all if num=1) was/were already applied
get the number of applied preprocs
Definition at line 87 of file Features.cpp.
| INT CFeatures::get_num_preproc | ( | ) |
get number of preprocessors
Definition at line 113 of file Features.h.
| void CFeatures::clean_preprocs | ( | ) |
| INT CFeatures::get_cache_size | ( | ) |
| virtual INT CFeatures::get_num_vectors | ( | ) | [pure virtual] |
get number of examples/vectors
abstract base method
Implemented in CCombinedFeatures, CSimpleFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, CSimpleFeatures< unsigned short int >, CSparseFeatures< double >, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
in case there is a feature matrix allow for reshaping
NOT IMPLEMENTED!
| num_features | new number of features | |
| num_vectors | new number of vectors |
Reimplemented in CSimpleFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, and CSimpleFeatures< unsigned short int >.
Definition at line 140 of file Features.h.
| virtual INT CFeatures::get_size | ( | ) | [pure virtual] |
get memory footprint of one feature
abstrace base method
Implemented in CCombinedFeatures, CSimpleFeatures< ST >, CSparseFeatures< ST >, CStringFeatures< ST >, CSimpleFeatures< double >, CSimpleFeatures< float >, CSimpleFeatures< int >, CSimpleFeatures< short int >, CSimpleFeatures< unsigned char >, CSimpleFeatures< char >, CSimpleFeatures< unsigned short int >, CSparseFeatures< double >, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
| void CFeatures::list_feature_obj | ( | ) |
list feature object
Definition at line 152 of file Features.cpp.
| bool CFeatures::load | ( | CHAR * | fname | ) | [virtual] |
load features from file
| fname | filename to load from |
Reimplemented in CByteFeatures, CCharFeatures, CIntFeatures, CRealFeatures, CShortFeatures, CShortRealFeatures, CStringFeatures< ST >, CWordFeatures, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
Definition at line 213 of file Features.cpp.
| bool CFeatures::save | ( | CHAR * | fname | ) | [virtual] |
save features to file
| fname | filename to save to |
Reimplemented in CByteFeatures, CCharFeatures, CIntFeatures, CRealFeatures, CShortFeatures, CShortRealFeatures, CStringFeatures< ST >, CWordFeatures, CStringFeatures< unsigned char >, and CStringFeatures< unsigned short int >.
Definition at line 218 of file Features.cpp.
| bool CFeatures::check_feature_compatibility | ( | CFeatures * | f | ) |
check feature compatibility
| f | features to check for compatibility |
Definition at line 223 of file Features.cpp.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.