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)
在文件SortUlongString.h第28行定义。
公有成员 | |
CSortUlongString () | |
virtual | ~CSortUlongString () |
virtual bool | init (CFeatures *f) |
initialize preprocessor from features | |
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 () |
CSortUlongString | ( | ) |
default constructor
在文件SortUlongString.cpp第19行定义。
~CSortUlongString | ( | ) | [virtual] |
在文件SortUlongString.cpp第24行定义。
uint64_t * 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
实现了CStringPreProc< uint64_t >。
在文件SortUlongString.cpp第79行定义。
bool apply_to_string_features | ( | CFeatures * | f ) | [virtual] |
apply preproc to feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
实现了CStringPreProc< uint64_t >。
在文件SortUlongString.cpp第57行定义。
void cleanup | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | [virtual] |
在文件SortUlongString.h第54行定义。
bool init | ( | CFeatures * | f ) | [virtual] |
bool load | ( | FILE * | f ) | [virtual] |
initialize preprocessor from file
在文件SortUlongString.cpp第43行定义。
bool save | ( | FILE * | f ) | [virtual] |
save preprocessor init-data to file
在文件SortUlongString.cpp第49行定义。