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) 2013 Roman Votyakov 00008 */ 00009 00010 #ifndef _FUNCTION_H_ 00011 #define _FUNCTION_H_ 00012 00013 #include <shogun/base/SGObject.h> 00014 00015 namespace shogun 00016 { 00017 00020 class CFunction : public CSGObject 00021 { 00022 public: 00030 virtual float64_t operator() (float64_t x)=0; 00031 00036 virtual const char* get_name() const { return "Function"; } 00037 }; 00038 } 00039 #endif /* _FUNCTION_H_ */