00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2009 Soeren Sonnenburg 00008 * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _DENSEPREPROCESSOR__H__ 00012 #define _DENSEPREPROCESSOR__H__ 00013 00014 #include <shogun/features/Features.h> 00015 #include <shogun/features/DenseFeatures.h> 00016 #include <shogun/lib/common.h> 00017 #include <shogun/preprocessor/Preprocessor.h> 00018 00019 namespace shogun 00020 { 00021 template <class ST> class CDenseFeatures; 00022 00031 template <class ST> class CDensePreprocessor : public CPreprocessor 00032 { 00033 public: 00036 CDensePreprocessor(); 00037 00041 virtual SGMatrix<ST> apply_to_feature_matrix(CFeatures* features)=0; 00042 00045 virtual SGVector<ST> apply_to_feature_vector(SGVector<ST> vector)=0; 00046 00048 virtual EFeatureClass get_feature_class(); 00050 virtual EFeatureType get_feature_type(); 00051 00053 virtual EPreprocessorType get_type() const; 00054 00055 }; 00056 00057 } 00058 #endif