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 * Copyright (C) 2012 Jacob Walker 00009 */ 00010 00011 #ifndef CDIFFERENTIABLEFUNCTION_H_ 00012 #define CDIFFERENTIABLEFUNCTION_H_ 00013 00014 #include <shogun/base/SGObject.h> 00015 #include <shogun/lib/Map.h> 00016 #include <shogun/lib/SGVector.h> 00017 00018 namespace shogun 00019 { 00020 00024 class CDifferentiableFunction : public CSGObject 00025 { 00026 public: 00028 CDifferentiableFunction(); 00029 00030 virtual ~CDifferentiableFunction(); 00031 00039 virtual CMap<TParameter*, SGVector<float64_t> >* get_gradient( 00040 CMap<TParameter*, CSGObject*>* parameters)=0; 00041 00046 virtual SGVector<float64_t> get_value()=0; 00047 }; 00048 } 00049 #endif /* CDIFFERENTIABLEFUNCTION_H_ */