Public Member Functions

CSimplePreProc< ST > Class Template Reference


Detailed Description

template<class ST>
class shogun::CSimplePreProc< ST >

Template class SimplePreProc, base class for preprocessors (cf. CPreProc) that apply to CSimpleFeatures (i.e. rectangular dense matrices).

Two new functions apply_to_feature_vector() and apply_to_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSimpleFeatures. For examples see e.g. CLogPlusOne or CPCACut.

Definition at line 31 of file SimplePreProc.h.

Inheritance diagram for CSimplePreProc< ST >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSimplePreProc (const char *name, const char *id)
virtual ST * apply_to_feature_matrix (CFeatures *f)=0
virtual ST * apply_to_feature_vector (ST *f, int32_t &len)=0
virtual EFeatureClass get_feature_class ()
 return that we are simple features (just fixed size matrices)
virtual EFeatureType get_feature_type ()
 return feature type
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

CSimplePreProc ( const char *  name,
const char *  id 
)

constructor

Parameters:
name simple preprocessor's name
id simple preprocessor's id

Definition at line 39 of file SimplePreProc.h.


Member Function Documentation

virtual ST* apply_to_feature_matrix ( CFeatures f  )  [pure virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, and CPruneVarSubMean.

virtual ST* apply_to_feature_vector ( ST *  f,
int32_t &  len 
) [pure virtual]

apply preproc on single feature vector result in feature matrix

Implemented in CLogPlusOne, CNormDerivativeLem3, CNormOne, CPCACut, and CPruneVarSubMean.

virtual EFeatureClass get_feature_class (  )  [virtual]

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

Implements CPreProc.

Definition at line 52 of file SimplePreProc.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 72 of file SimplePreProc.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 67 of file SimplePreProc.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 62 of file SimplePreProc.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 57 of file SimplePreProc.h.

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type

Implements CPreProc.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 77 of file SimplePreProc.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 82 of file SimplePreProc.h.


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

SHOGUN Machine Learning Toolbox - Documentation