00001 /* -*- mode: c++ -*- */ 00002 00013 #ifndef _Chi2Dist_H_ 00014 #define _Chi2Dist_H_ 00015 00016 #include "FunctionBase.h" 00017 00018 namespace hippodraw { 00019 00028 class MDL_HIPPOPLOT_API Chi2Dist : public FunctionBase 00029 { 00030 00031 protected: 00032 00034 virtual void initialize (); 00035 00036 public: 00037 00039 Chi2Dist (); 00040 00042 Chi2Dist ( double norm, double nu, double scale ); 00043 00044 virtual FunctionBase * clone () const; 00045 00047 virtual double operator () ( double x ) const; 00048 00049 virtual void initialParameters ( const FunctionHelper * helper ); 00050 00051 protected: 00052 00053 virtual double derivByParm ( int i, double x ) const; 00054 00055 }; 00056 00057 } // namespace hippodraw 00058 00059 #endif // _Chi2Dist_H_