#ifndef BROKEN_POWER_LAW_MODEL_H_ #define BROKEN_POWER_LAW_MODEL_H_ #define OPT_HEADER #include #include namespace opt_utilities { template class bpl1d :public model,std::string> { private: model >* do_clone()const { return new bpl1d(*this); } public: bpl1d() { this->push_param_info(param_info >("bpx",1)); this->push_param_info(param_info >("bpy",1)); this->push_param_info(param_info >("gamma1",1)); this->push_param_info(param_info >("gamma2",1)); } T do_eval(const T& x,const std::vector& param) { T x_b=get_element(param,0); T f_b=get_element(param,1); T gamma1=get_element(param,2); T gamma2=get_element(param,3); if(x