Public Member Functions

CSortWordString Class Reference

Detailed Description

Preprocessor SortWordString, sorts the indivual strings in ascending order.

This is useful in conjunction with the CCommWordStringKernel and will result in the spectrum kernel. For this to work the strings have to be mapped into a binary higher order representation first (cf. obtain_from_*() functions in CStringFeatures)

Definition at line 29 of file SortWordString.h.

Inheritance diagram for CSortWordString:
Inheritance graph

List of all members.

Public Member Functions

 CSortWordString ()
virtual ~CSortWordString ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
virtual bool load (FILE *f)
 initialize preprocessor from file
virtual bool save (FILE *f)
 save preprocessor init-data to file
virtual bool apply_to_string_features (CFeatures *f)
virtual uint16_t * apply_to_string (uint16_t *f, int32_t &len)
 apply preproc on single feature vector
virtual const char * get_name ()

Constructor & Destructor Documentation

CSortWordString (  ) 

default constructor

Definition at line 18 of file SortWordString.cpp.

~CSortWordString (  )  [virtual]

Definition at line 23 of file SortWordString.cpp.

Member Function Documentation

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

apply preproc on single feature vector

apply preproc on single feature vector result in feature matrix

Implements CStringPreProc< uint16_t >.

Definition at line 80 of file SortWordString.cpp.

bool apply_to_string_features ( CFeatures f  )  [virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

Implements CStringPreProc< uint16_t >.

Definition at line 60 of file SortWordString.cpp.

void cleanup (  )  [virtual]


clean up allocated memory

Implements CPreProc.

Definition at line 37 of file SortWordString.cpp.

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

Implements CSGObject.

Definition at line 56 of file SortWordString.h.

bool init ( CFeatures f  )  [virtual]

initialize preprocessor from features

Implements CPreProc.

Definition at line 28 of file SortWordString.cpp.

bool load ( FILE *  f  )  [virtual]

initialize preprocessor from file

Definition at line 42 of file SortWordString.cpp.

bool save ( FILE *  f  )  [virtual]

save preprocessor init-data to file

Definition at line 50 of file SortWordString.cpp.

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

SHOGUN Machine Learning Toolbox - Documentation