CSortUlongString Class Reference


Detailed Description

Preprocessor SortUlongString, sorts the indivual strings in ascending order.

This is useful in conjunction with the CCommUlongStringKernel 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 27 of file SortUlongString.h.

Inheritance diagram for CSortUlongString:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSortUlongString ()
virtual ~CSortUlongString ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual bool load_init_data (FILE *src)
 initialize preprocessor from file
virtual bool save_init_data (FILE *dst)
 save init-data (like transforamtion matrices etc) to file
virtual void cleanup ()
 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 uint64_t * apply_to_string (uint64_t *f, int32_t &len)
 apply preproc on single feature vector
virtual const char * get_name ()

Constructor & Destructor Documentation

CSortUlongString::CSortUlongString (  ) 

default constructor

Definition at line 17 of file SortUlongString.cpp.

CSortUlongString::~CSortUlongString (  )  [virtual]

Definition at line 22 of file SortUlongString.cpp.


Member Function Documentation

uint64_t * CSortUlongString::apply_to_string ( uint64_t *  f,
int32_t &  len 
) [virtual]

apply preproc on single feature vector

apply preproc on single feature vector result in feature matrix

Implements CStringPreProc< uint64_t >.

Definition at line 74 of file SortUlongString.cpp.

bool CSortUlongString::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< uint64_t >.

Definition at line 55 of file SortUlongString.cpp.

void CSortUlongString::cleanup (  )  [virtual]

cleanup

clean up allocated memory

Implements CPreProc.

Definition at line 36 of file SortUlongString.cpp.

virtual const char* CSortUlongString::get_name (  )  [virtual]
Returns:
object name

Definition at line 58 of file SortUlongString.h.

bool CSortUlongString::init ( CFeatures f  )  [virtual]

initialize preprocessor from features

Implements CPreProc.

Definition at line 27 of file SortUlongString.cpp.

bool CSortUlongString::load ( FILE *  f  )  [virtual]

initialize preprocessor from file

Definition at line 41 of file SortUlongString.cpp.

bool CSortUlongString::load_init_data ( FILE *  src  )  [virtual]

initialize preprocessor from file

Implements CPreProc.

Definition at line 89 of file SortUlongString.cpp.

bool CSortUlongString::save ( FILE *  f  )  [virtual]

save preprocessor init-data to file

Definition at line 47 of file SortUlongString.cpp.

bool CSortUlongString::save_init_data ( FILE *  dst  )  [virtual]

save init-data (like transforamtion matrices etc) to file

Implements CPreProc.

Definition at line 95 of file SortUlongString.cpp.


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

SHOGUN Machine Learning Toolbox - Documentation