Class Preprocessor 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 they have to stay in
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. CSimplePreprocessor .
Definition at line 74 of file Preprocessor.h.
Public Member Functions | |
CPreprocessor () | |
virtual | ~CPreprocessor () |
virtual bool | init (CFeatures *f)=0 |
initialize preprocessor from features | |
virtual void | cleanup ()=0 |
cleanup | |
virtual EFeatureType | get_feature_type ()=0 |
virtual EFeatureClass | get_feature_class ()=0 |
virtual EPreprocessorType | get_type () const =0 |
return a type of preprocessor |
CPreprocessor | ( | ) |
constructor
Definition at line 17 of file Preprocessor.cpp.
~CPreprocessor | ( | ) | [virtual] |
destructor
Definition at line 22 of file Preprocessor.cpp.
virtual void cleanup | ( | ) | [pure virtual] |
cleanup
Implemented in CDecompressString< ST >, CDimensionReductionPreprocessor, CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CLogPlusOne, CMultidimensionalScaling, CNormOne, CPCA, CPruneVarSubMean, CRandomFourierGaussPreproc, CSortUlongString, and CSortWordString.
virtual EFeatureClass get_feature_class | ( | ) | [pure virtual] |
return feature class like Sparse,Simple,...
Implemented in CRandomFourierGaussPreproc, CSimplePreprocessor< ST >, CSparsePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< float64_t >, CStringPreprocessor< uint16_t >, and CStringPreprocessor< uint64_t >.
virtual EFeatureType get_feature_type | ( | ) | [pure virtual] |
return feature type with which objects derived from CPreprocessor can deal
Implemented in CRandomFourierGaussPreproc, CSimplePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< float64_t >, CStringPreprocessor< uint16_t >, CStringPreprocessor< uint64_t >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, and CStringPreprocessor< ST >.
virtual EPreprocessorType get_type | ( | ) | const [pure virtual] |
return a type of preprocessor
Implemented in CDecompressString< ST >, CDimensionReductionPreprocessor, CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CLogPlusOne, CMultidimensionalScaling, CNormOne, CPCA, CPruneVarSubMean, CRandomFourierGaussPreproc, CSimplePreprocessor< ST >, CSortUlongString, CSortWordString, CSparsePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< float64_t >, CStringPreprocessor< uint16_t >, and CStringPreprocessor< uint64_t >.
virtual bool init | ( | CFeatures * | f | ) | [pure virtual] |
initialize preprocessor from features
Implemented in CDecompressString< ST >, CDimensionReductionPreprocessor, CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CLogPlusOne, CMultidimensionalScaling, CNormOne, CPCA, CPruneVarSubMean, CRandomFourierGaussPreproc, CSortUlongString, and CSortWordString.