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 * Copyright (C) 2012 Jacob Walker 00008 */ 00009 00010 #ifndef CDIFFERENTIABLEFUNCTION_H_ 00011 #define CDIFFERENTIABLEFUNCTION_H_ 00012 00013 #include <shogun/base/SGObject.h> 00014 #include <shogun/lib/Map.h> 00015 #include <shogun/lib/SGString.h> 00016 #include <shogun/lib/DynamicObjectArray.h> 00017 00018 namespace shogun 00019 { 00020 00027 class CDifferentiableFunction: public CSGObject 00028 { 00029 00030 public: 00031 00032 /*Constructor*/ 00033 CDifferentiableFunction(); 00034 00035 /*Destructor*/ 00036 virtual ~CDifferentiableFunction(); 00037 00043 virtual CMap<TParameter*, SGVector<float64_t> > get_gradient( 00044 CMap<TParameter*, CSGObject*>& para_dict) = 0; 00045 00050 virtual SGVector<float64_t> get_quantity() = 0; 00051 }; 00052 00053 } /* namespace shogun */ 00054 00055 #endif /* CDIFFERENTIABLEFUNCTION_H_ */