CSimplePreProc< ST > Class Template Reference


Detailed Description

template<class ST>
class 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 29 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 ()

Constructor & Destructor Documentation

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

constructor

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

Definition at line 37 of file SimplePreProc.h.


Member Function Documentation

template<class ST>
virtual ST* CSimplePreProc< 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.

template<class ST>
virtual ST* CSimplePreProc< 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, CNormOne, CPCACut, and CPruneVarSubMean.

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

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

Implements CPreProc.

Definition at line 50 of file SimplePreProc.h.

template<>
EFeatureType CSimplePreProc< uint64_t >::get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 80 of file SimplePreProc.h.

template<>
EFeatureType CSimplePreProc< uint8_t >::get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 75 of file SimplePreProc.h.

template<>
EFeatureType CSimplePreProc< char >::get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 70 of file SimplePreProc.h.

template<>
EFeatureType CSimplePreProc< uint16_t >::get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 65 of file SimplePreProc.h.

template<>
EFeatureType CSimplePreProc< int16_t >::get_feature_type (  )  [virtual]

return feature type with which objects derived from CPreProc can deal

Implements CPreProc.

Definition at line 60 of file SimplePreProc.h.

template<class ST>
virtual EFeatureType CSimplePreProc< ST >::get_feature_type (  )  [virtual]

return feature type

Implements CPreProc.


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

SHOGUN Machine Learning Toolbox - Documentation