CSparsePreProc< ST > Class Template Reference

Inheritance diagram for CSparsePreProc< ST >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<class ST>
class CSparsePreProc< ST >

template class SparsePreProc

Definition at line 24 of file SparsePreProc.h.


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, INT &len)=0
virtual EFeatureClass get_feature_class ()
 return that we are simple minded features (just fixed size matrices)
virtual bool init (CFeatures *f)=0
 initialize preprocessor from features
virtual bool load_init_data (FILE *src)=0
 initialize preprocessor from file
virtual bool save_init_data (FILE *dst)=0
 save init-data (like transforamtion matrices etc) to file
virtual void cleanup ()=0
 cleanup
virtual EFeatureType get_feature_type ()=0
const CHARget_name () const
 return the name of the preprocessor
const CHARget_id () const
 return a FOUR letter id of the preprocessor

Static Public Attributes

static CParallel parallel
static CIO io
static CVersion version

Protected Attributes

const CHARpreproc_name
const CHARpreproc_id

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 32 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,
INT 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 46 of file SparsePreProc.h.

virtual bool CPreProc::init ( CFeatures f  )  [pure virtual, inherited]

initialize preprocessor from features

Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPruneVarSubMean, CSortUlongString, CSortWord, and CSortWordString.

virtual bool CPreProc::load_init_data ( FILE *  src  )  [pure virtual, inherited]

initialize preprocessor from file

Implemented in CLogPlusOne, CNormOne, CPruneVarSubMean, CSortUlongString, CSortWord, and CSortWordString.

virtual bool CPreProc::save_init_data ( FILE *  dst  )  [pure virtual, inherited]

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

Implemented in CLogPlusOne, CNormOne, CPruneVarSubMean, CSortUlongString, CSortWord, and CSortWordString.

virtual void CPreProc::cleanup (  )  [pure virtual, inherited]

virtual EFeatureType CPreProc::get_feature_type (  )  [pure virtual, inherited]

const CHAR* CPreProc::get_name (  )  const [inherited]

return the name of the preprocessor

Definition at line 56 of file PreProc.h.

const CHAR* CPreProc::get_id (  )  const [inherited]

return a FOUR letter id of the preprocessor

Definition at line 59 of file PreProc.h.


Member Data Documentation

const CHAR* CPreProc::preproc_name [protected, inherited]

preprocessor name

Definition at line 63 of file PreProc.h.

const CHAR* CPreProc::preproc_id [protected, inherited]

preprocessor id

Definition at line 65 of file PreProc.h.

CParallel CSGObject::parallel [static, inherited]

Definition at line 105 of file SGObject.h.

CIO CSGObject::io [static, inherited]

Definition at line 106 of file SGObject.h.

CVersion CSGObject::version [static, inherited]

Definition at line 107 of file SGObject.h.


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

SHOGUN Machine Learning Toolbox - Documentation