Template class SparsePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CSparseFeatures.
Two new functions apply_to_sparse_feature_vector() and apply_to_sparse_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSparseFeatures.
Definition at line 33 of file SparsePreprocessor.h.
Public Member Functions | |
CSparsePreprocessor () | |
virtual SGSparseVector< ST > * | apply_to_sparse_feature_matrix (CSparseFeatures< ST > *f)=0 |
virtual SGSparseVector< ST > * | apply_to_sparse_feature_vector (SGSparseVector< ST > *f, int32_t &len)=0 |
virtual EFeatureClass | get_feature_class () |
return that we are simple minded features (just fixed size matrices) | |
virtual const char * | get_name () const |
return the name of the preprocessor | |
virtual EPreprocessorType | get_type () const |
return a type of preprocessor |
constructor
Definition at line 38 of file SparsePreprocessor.h.
virtual SGSparseVector<ST>* apply_to_sparse_feature_matrix | ( | CSparseFeatures< ST > * | f | ) | [pure virtual] |
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
virtual SGSparseVector<ST>* apply_to_sparse_feature_vector | ( | SGSparseVector< ST > * | f, | |
int32_t & | len | |||
) | [pure virtual] |
apply preproc on single feature vector result in feature matrix
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return that we are simple minded features (just fixed size matrices)
Implements CPreprocessor.
Definition at line 50 of file SparsePreprocessor.h.
virtual const char* get_name | ( | ) | const [virtual] |
return the name of the preprocessor
Implements CSGObject.
Definition at line 53 of file SparsePreprocessor.h.
virtual EPreprocessorType get_type | ( | ) | const [virtual] |
return a type of preprocessor
Implements CPreprocessor.
Definition at line 56 of file SparsePreprocessor.h.