#ifndef VLIN1D_ESTIMATER #define VLIN1D_ESTIMATER #include #include #include #include namespace opt_utilities { template class lin1d_estimater :public pre_estimater,optvec,optvec,std::string> { public: lin1d_estimater() { this->set_model_id("1d linear model"); } lin1d_estimater* do_clone()const { return new lin1d_estimater(*this); } void do_estimate(const data_set,optvec >& d,model,optvec,optvec,std::string>& m)const { T n=d.size(); T sy=0; T sxx=0; T sx=0; T sxy=0; for(int i=0;i