#ifndef BROKEN_LINE_MODEL_H_ #define BROKEN_LINE_MODEL_H_ #define OPT_HEADER #include #include namespace opt_utilities { template class bl1d :public model,std::string> { private: model >* do_clone()const { return new bl1d(*this); } public: bl1d() { this->push_param_info(param_info >("break point y value",1)); this->push_param_info(param_info >("break point x value",1)); this->push_param_info(param_info >("slop 1",1)); this->push_param_info(param_info >("slop 2",1)); } public: 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 k1=get_element(param,2); T k2=get_element(param,3); if(x