31 #ifndef GRT_PRE_PROCESSING_HEADER 32 #define GRT_PRE_PROCESSING_HEADER 66 bool copyBaseVariables(
const PreProcessing *preProcessingModule);
81 virtual bool reset()
override;
89 virtual bool clear()
override;
96 bool getInitialized()
const;
122 GRT_DEPRECATED_MSG(
"createInstanceFromString(id) is deprecated, use create(id) instead.",
static PreProcessing* createInstanceFromString(
const std::string &
id ) );
123 GRT_DEPRECATED_MSG(
"getPreProcessingType is deprecated, use getId() instead", std::string getPreProcessingType()
const );
139 bool savePreProcessingSettingsToFile(std::fstream &file)
const;
146 bool loadPreProcessingSettingsFromFile(std::fstream &file);
148 std::string preProcessingType;
152 static StringPreProcessingMap *getMap() {
153 if( !stringPreProcessingMap ){ stringPreProcessingMap =
new StringPreProcessingMap; }
154 return stringPreProcessingMap;
158 static StringPreProcessingMap *stringPreProcessingMap;
159 static UINT numPreProcessingInstances;
162 template<
typename T >
169 template<
typename T >
173 getMap()->insert( std::pair< std::string,
PreProcessing*(*)() >(newModuleId, &createNewPreProcessingModule< T > ) );
179 #endif // GRT_POST_PROCESSING_HEADER virtual bool deepCopyFrom(const PreProcessing *rhs)
PreProcessing * createNewPreProcessingModule()
Returns a pointer to a new instance of the template class, the caller is responsible for deleting the...
GRT_DEPRECATED_MSG("saveModelToFile(std::string filename) is deprecated, use save(const std::string &filename) instead", virtual bool saveModelToFile(const std::string &filename) const )
virtual bool process(const VectorFloat &inputVector)
This class provides an interface for classes to register themselves with the preprocessing base class...
This is the main base class that all GRT machine learning algorithms should inherit from...
std::map< std::string, PreProcessing *(*)() > StringPreProcessingMap