DummyFeatures.h

Go to the documentation of this file.
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 int32_t get_size() const;
00046 
00048         virtual CFeatures* duplicate() const;
00049 
00051         inline EFeatureType get_feature_type() const;
00052 
00054         virtual EFeatureClass get_feature_class() const;
00055 
00057         virtual const char* get_name() const { return "DummyFeatures"; }
00058 
00059     private:
00060         void init();
00061 
00062     protected:
00064         int32_t num_vectors;
00065 };
00066 }
00067 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation