00001 /* -*- mode: c++ -*- */ 00002 00013 #ifndef _Exponential_H_ 00014 #define _Exponential_H_ 00015 00016 #include "FunctionBase.h" 00017 00023 class MDL_HIPPOPLOT_API Exponential : public FunctionBase 00024 { 00025 00026 protected: 00027 00029 virtual void initialize (); 00030 00031 public: 00032 00034 Exponential (); 00035 00037 Exponential ( double prefactor, double scale ); 00038 00039 virtual FunctionBase * clone () const; 00040 00042 virtual double operator () ( double x ) const; 00043 00044 virtual void initialParameters ( const FunctionHelper * helper ); 00045 00046 protected: 00047 00048 virtual double derivByParm ( int i, double x ) const; 00049 00050 }; 00051 00052 #endif // _Exponential_H_