Public Member Functions

CStringPreprocessor< ST > Class Template Reference


Detailed Description

template<class ST>
class shogun::CStringPreprocessor< ST >

Template class StringPreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CStringFeatures (i.e. strings of variable length).

Two new functions apply_to_string() and apply_to_string_features() are defined in this interface that need to be implemented in each particular preprocessor operating on CStringFeatures.

Definition at line 30 of file StringPreprocessor.h.

Inheritance diagram for CStringPreprocessor< ST >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CStringPreprocessor ()
virtual bool apply_to_string_features (CFeatures *f)=0
virtual ST * apply_to_string (ST *f, int32_t &len)=0
 apply preproc on single feature vector
virtual EFeatureClass get_feature_class ()
 return that we are string features (just fixed size matrices)
virtual EFeatureType get_feature_type ()
 return feature type
virtual const char * get_name () const
 return the name of the preprocessor
virtual EPreprocessorType get_type () const
 return a type of preprocessor
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 ()
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 ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

constructor

Definition at line 35 of file StringPreprocessor.h.


Member Function Documentation

virtual ST* apply_to_string ( ST *  f,
int32_t &  len 
) [pure virtual]

apply preproc on single feature vector

Implemented in CDecompressString< ST >, CSortUlongString, and CSortWordString.

virtual bool apply_to_string_features ( 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 CDecompressString< ST >, CSortUlongString, and CSortWordString.

virtual EFeatureClass get_feature_class (  )  [virtual]

return that we are string features (just fixed size matrices)

Implements CPreprocessor.

Definition at line 46 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 108 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 103 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 98 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 93 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 88 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 118 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 78 of file StringPreprocessor.h.

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type

Implements CPreprocessor.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 63 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 68 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 58 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 83 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 73 of file StringPreprocessor.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreprocessor can deal

Implements CPreprocessor.

Definition at line 113 of file StringPreprocessor.h.

virtual const char* get_name ( void   )  const [virtual]

return the name of the preprocessor

Implements CSGObject.

Reimplemented in CDecompressString< ST >, CSortUlongString, and CSortWordString.

Definition at line 51 of file StringPreprocessor.h.

virtual EPreprocessorType get_type (  )  const [virtual]

return a type of preprocessor

Implements CPreprocessor.

Reimplemented in CDecompressString< ST >, CSortUlongString, and CSortWordString.

Definition at line 54 of file StringPreprocessor.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation