CSparsePreProc< ST > Class Template Reference

Inheritance diagram for CSparsePreProc< ST >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSparsePreProc (const char *name, const char *id)
virtual TSparse< ST > * apply_to_sparse_feature_matrix (CSparseFeatures< ST > *f)=0
virtual TSparse< ST > * apply_to_sparse_feature_vector (TSparse< ST > *f, int32_t &len)=0
virtual EFeatureClass get_feature_class ()
 return that we are simple minded features (just fixed size matrices)


Detailed Description

template<class ST>
class CSparsePreProc< ST >

Template class SparsePreProc, base class for preprocessors (cf. CPreProc) 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 31 of file SparsePreProc.h.


Constructor & Destructor Documentation

template<class ST >
CSparsePreProc< ST >::CSparsePreProc ( const char *  name,
const char *  id 
)

constructor

Parameters:
name sparse preprocessor's name
id sparse preprocessor's id

Definition at line 39 of file SparsePreProc.h.


Member Function Documentation

template<class ST >
virtual TSparse<ST>* CSparsePreProc< 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();

template<class ST >
virtual TSparse<ST>* CSparsePreProc< ST >::apply_to_sparse_feature_vector ( TSparse< ST > *  f,
int32_t &  len 
) [pure virtual]

apply preproc on single feature vector result in feature matrix

template<class ST >
virtual EFeatureClass CSparsePreProc< ST >::get_feature_class (  )  [virtual]

return that we are simple minded features (just fixed size matrices)

Implements CPreProc.

Definition at line 53 of file SparsePreProc.h.


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

SHOGUN Machine Learning Toolbox - Documentation