Public Member Functions | Protected Attributes

CPreProc Class Reference

Detailed Description

Class PreProc defines a preprocessor interface.

Preprocessors are transformation functions that don't change the domain of the input features. These functions can be applied in-place if the input features fit in memory or can be applied on-the-fly when (depending on features) a feature caching strategy is applied. However, if the individual features are in $\bf{R}$ they have to stay in $\bf{R}$ although the dimensionality of the feature vectors is allowed change.

As preprocessors might need a certain initialization they may expect that the init() function is called before anything else. The actual preprocessing is feature type dependent and thus coordinated in the sub-classes, cf. e.g. CSimplePreProc .

Definition at line 57 of file PreProc.h.

Inheritance diagram for CPreProc:
Inheritance graph

List of all members.

Public Member Functions

 CPreProc (const char *name, const char *id)
virtual ~CPreProc ()
virtual bool init (CFeatures *f)=0
 initialize preprocessor from features
virtual void cleanup ()=0
virtual EFeatureType get_feature_type ()=0
virtual EFeatureClass get_feature_class ()=0
virtual const char * get_name () const
 return the name of the preprocessor
const char * get_id () const
 return a FOUR letter id of the preprocessor

Protected Attributes

const char * preproc_name
const char * preproc_id

Constructor & Destructor Documentation

CPreProc ( const char *  name,
const char *  id 


name preprocessor's name
id preprocessor's id

Definition at line 17 of file PreProc.cpp.

~CPreProc (  )  [virtual]

Definition at line 23 of file PreProc.cpp.

Member Function Documentation

virtual void cleanup (  )  [pure virtual]
virtual EFeatureClass get_feature_class (  )  [pure virtual]
virtual EFeatureType get_feature_type (  )  [pure virtual]
const char* get_id (  )  const

return a FOUR letter id of the preprocessor

Definition at line 87 of file PreProc.h.

virtual const char* get_name ( void   )  const [virtual]

return the name of the preprocessor

Implements CSGObject.

Reimplemented in CLogPlusOne.

Definition at line 84 of file PreProc.h.

virtual bool init ( CFeatures f  )  [pure virtual]

Member Data Documentation

const char* preproc_id [protected]

preprocessor id

Definition at line 93 of file PreProc.h.

const char* preproc_name [protected]

preprocessor name

Definition at line 91 of file PreProc.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation