SHOGUN
v3.2.0
|
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) 2009 Soeren Sonnenburg 00008 * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _DUMMYFEATURES__H__ 00012 #define _DUMMYFEATURES__H__ 00013 00014 #include <shogun/lib/common.h> 00015 #include <shogun/features/Features.h> 00016 00017 namespace shogun 00018 { 00023 class CDummyFeatures : public CFeatures 00024 { 00025 public: 00027 CDummyFeatures(); 00028 00033 CDummyFeatures(int32_t num); 00034 00036 CDummyFeatures(const CDummyFeatures &orig); 00037 00039 virtual ~CDummyFeatures(); 00040 00042 virtual int32_t get_num_vectors() const; 00043 00045 virtual CFeatures* duplicate() const; 00046 00048 inline EFeatureType get_feature_type() const; 00049 00051 virtual EFeatureClass get_feature_class() const; 00052 00054 virtual const char* get_name() const { return "DummyFeatures"; } 00055 00056 private: 00057 void init(); 00058 00059 protected: 00061 int32_t num_vectors; 00062 }; 00063 } 00064 #endif