00001
00002
00013 #ifndef _BrokenPowerLaw_H_
00014 #define _BrokenPowerLaw_H_
00015
00016 #include "FunctionBase.h"
00017
00018 namespace hippodraw {
00019
00027 class MDL_HIPPOPLOT_API BrokenPowerLaw : public FunctionBase
00028 {
00029
00030 protected:
00031
00033 virtual void initialize ();
00034
00035 public:
00036
00038 BrokenPowerLaw ();
00039
00041 BrokenPowerLaw ( double prefactor, double index1,
00042 double index2, double x_break );
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 }
00058
00059 #endif // _BrokenPowerLaw_H_