00001 #ifndef USERDEFINEDFUNCTION_H 00002 #define USERDEFINEDFUNCTION_H 00003 00004 #include "SundanceDefs.h" 00005 #include "Point.h" 00006 00007 namespace Sundance 00008 { 00009 00010 using namespace TSF; 00011 00012 /** 00013 */ 00014 00015 class UserDefinedFunction 00016 { 00017 public: 00018 /** \name Developer-only methods */ 00019 //@{ 00020 /** */ 00021 UserDefinedFunction(){;} 00022 /** no detailed doc */ 00023 virtual ~UserDefinedFunction(){;} 00024 00025 /** */ 00026 virtual double evaluateAtPoint(const Point& x) const = 0 ; 00027 //@} 00028 private: 00029 }; 00030 00031 00032 } 00033 #endif