00001 /* -*- mode: c++ -*- */ 00002 00014 #ifndef _LogNormal_H_ 00015 #define _LogNormal_H_ 00016 00017 #include "FunctionBase.h" 00018 00026 class MDL_HIPPOPLOT_API LogNormal : public FunctionBase 00027 { 00028 00029 protected: 00030 00032 virtual void initialize (); 00033 00034 virtual double derivByParm ( int i, double x ) const; 00035 00036 public: 00037 00039 LogNormal (); 00040 00044 LogNormal ( double norm, double mean, double sigma, double tail ); 00045 00046 virtual FunctionBase * clone () const; 00047 00049 virtual double operator () ( double x ) const; 00050 00051 virtual void initialParameters ( const FunctionHelper * helper ); 00052 00057 virtual bool hasDerivatives () const; 00058 00059 }; 00060 00061 #endif // _LogNormal_H_