CCombinedFeatures Class Reference

Inheritance diagram for CCombinedFeatures:

Inheritance graph
[legend]

List of all members.


Detailed Description

class CombinedFeatures

Definition at line 21 of file CombinedFeatures.h.


Public Member Functions

 CCombinedFeatures ()
 CCombinedFeatures (const CCombinedFeatures &orig)
virtual CFeaturesduplicate () const
virtual ~CCombinedFeatures ()
virtual EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual INT get_num_vectors ()
virtual INT get_size ()
void list_feature_objs ()
bool check_feature_obj_compatibility (CCombinedFeatures *comb_feat)
CFeaturesget_first_feature_obj ()
CFeaturesget_first_feature_obj (CListElement< CFeatures * > *&current)
CFeaturesget_next_feature_obj ()
CFeaturesget_next_feature_obj (CListElement< CFeatures * > *&current)
CFeaturesget_last_feature_obj ()
bool insert_feature_obj (CFeatures *obj)
bool append_feature_obj (CFeatures *obj)
bool delete_feature_obj ()
int get_num_feature_obj ()
virtual INT add_preproc (CPreProc *p)
 set preprocessor
virtual CPreProcdel_preproc (INT num)
 del current preprocessor
CPreProcget_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 bool reshape (INT num_features, INT num_vectors)
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

Protected Attributes

CList< CFeatures * > * feature_list

Constructor & Destructor Documentation

CCombinedFeatures::CCombinedFeatures (  ) 

default constructor

Definition at line 17 of file CombinedFeatures.cpp.

CCombinedFeatures::CCombinedFeatures ( const CCombinedFeatures orig  ) 

copy constructor

Definition at line 23 of file CombinedFeatures.cpp.

CCombinedFeatures::~CCombinedFeatures (  )  [virtual]

Definition at line 33 of file CombinedFeatures.cpp.


Member Function Documentation

CFeatures * CCombinedFeatures::duplicate (  )  const [virtual]

duplicate feature object

Returns:
feature object

Implements CFeatures.

Definition at line 28 of file CombinedFeatures.cpp.

virtual EFeatureType CCombinedFeatures::get_feature_type (  )  [virtual]

get feature type

Returns:
feature type UNKNOWN

Implements CFeatures.

Definition at line 41 of file CombinedFeatures.h.

virtual EFeatureClass CCombinedFeatures::get_feature_class (  )  [virtual]

get feature class

Returns:
feature class SIMPLE

Implements CFeatures.

Definition at line 50 of file CombinedFeatures.h.

virtual INT CCombinedFeatures::get_num_vectors (  )  [virtual]

get number of feature vectors

Returns:
number of feature vectors

Implements CFeatures.

Definition at line 59 of file CombinedFeatures.h.

virtual INT CCombinedFeatures::get_size (  )  [virtual]

get memory footprint of one feature

Returns:
memory footprint of one feature

Implements CFeatures.

Definition at line 73 of file CombinedFeatures.h.

void CCombinedFeatures::list_feature_objs (  ) 

list feature objects

Definition at line 38 of file CombinedFeatures.cpp.

bool CCombinedFeatures::check_feature_obj_compatibility ( CCombinedFeatures comb_feat  ) 

check feature object compatibility

Parameters:
comb_feat feature to check for compatibility
Returns:
if feature is compatible

Definition at line 55 of file CombinedFeatures.cpp.

CFeatures* CCombinedFeatures::get_first_feature_obj (  ) 

get first feature object

Returns:
first feature object

Definition at line 97 of file CombinedFeatures.h.

CFeatures* CCombinedFeatures::get_first_feature_obj ( CListElement< CFeatures * > *&  current  ) 

get first feature object

Parameters:
current list of features
Returns:
first feature object

Definition at line 109 of file CombinedFeatures.h.

CFeatures* CCombinedFeatures::get_next_feature_obj (  ) 

get next feature object

Returns:
next feature object

Definition at line 120 of file CombinedFeatures.h.

CFeatures* CCombinedFeatures::get_next_feature_obj ( CListElement< CFeatures * > *&  current  ) 

get next feature object

Parameters:
current list of features
Returns:
next feature object

Definition at line 132 of file CombinedFeatures.h.

CFeatures* CCombinedFeatures::get_last_feature_obj (  ) 

get last feature object

Returns:
last feature object

Definition at line 143 of file CombinedFeatures.h.

bool CCombinedFeatures::insert_feature_obj ( CFeatures obj  ) 

insert feature object

Parameters:
obj feature object to insert
Returns:
if inserting was successful

Definition at line 155 of file CombinedFeatures.h.

bool CCombinedFeatures::append_feature_obj ( CFeatures obj  ) 

append feature object

Parameters:
obj feature object to append
Returns:
if appending was successful

Definition at line 167 of file CombinedFeatures.h.

bool CCombinedFeatures::delete_feature_obj (  ) 

delete feature object

Returns:
if deleting was succesful

Definition at line 178 of file CombinedFeatures.h.

int CCombinedFeatures::get_num_feature_obj (  ) 

get number of feature objects

Returns:
number of feature objects

Definition at line 194 of file CombinedFeatures.h.

INT CFeatures::add_preproc ( CPreProc p  )  [virtual, inherited]

set preprocessor

add preprocessor

Parameters:
p preprocessor to set
Returns:
something inty

Definition at line 48 of file Features.cpp.

CPreProc * CFeatures::del_preproc ( INT  num  )  [virtual, inherited]

del current preprocessor

delete preprocessor from list caller has to clean up returned preproc

Parameters:
num index of preprocessor in list

Definition at line 107 of file Features.cpp.

CPreProc * CFeatures::get_preproc ( INT  num  )  [inherited]

get current preprocessor

get specified preprocessor

Parameters:
num index of preprocessor in list

Definition at line 78 of file Features.cpp.

void CFeatures::set_preprocessed ( INT  num  )  [inherited]

set applied flag for preprocessor

Parameters:
num index of preprocessor in list

Definition at line 95 of file Features.h.

bool CFeatures::is_preprocessed ( INT  num  )  [inherited]

get whether specified preprocessor was already applied

Parameters:
num index of preprocessor in list

Definition at line 101 of file Features.h.

INT CFeatures::get_num_preprocessed (  )  [inherited]

get whether specified preprocessor (or all if num=1) was/were already applied

get the number of applied preprocs

Returns:
number of applied preprocessors

Definition at line 87 of file Features.cpp.

INT CFeatures::get_num_preproc (  )  [inherited]

get number of preprocessors

Returns:
number of preprocessors

Definition at line 113 of file Features.h.

void CFeatures::clean_preprocs (  )  [inherited]

clears all preprocs

clears all preprocs

Definition at line 101 of file Features.cpp.

INT CFeatures::get_cache_size (  )  [inherited]

get cache size

Returns:
cache size

Definition at line 122 of file Features.h.

virtual bool CFeatures::reshape ( INT  num_features,
INT  num_vectors 
) [virtual, inherited]

in case there is a feature matrix allow for reshaping

NOT IMPLEMENTED!

Parameters:
num_features new number of features
num_vectors new number of vectors
Returns:
if reshaping was succesful

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.

void CFeatures::list_feature_obj (  )  [inherited]

list feature object

Definition at line 152 of file Features.cpp.

bool CFeatures::load ( CHAR fname  )  [virtual, inherited]

load features from file

Parameters:
fname filename to load from
Returns:
if loading was successful

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, inherited]

save features to file

Parameters:
fname filename to save to
Returns:
if saving was successful

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  )  [inherited]

check feature compatibility

Parameters:
f features to check for compatibility
Returns:
if features are compatible

Definition at line 223 of file Features.cpp.


Member Data Documentation

feature list

Definition at line 201 of file CombinedFeatures.h.

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.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation