#include #include #include #include #include #include #include #include "methods/aga/aga.hpp" #include using namespace std; using namespace opt_utilities; int main(int argc,char* argv[]) { if(argc!=2) { cerr<<"Usage:"<"<,double,string> f; f.set_statistic(chisq,double,string>()); f.set_opt_method(powell_method >()); f.set_model(beta1d()); dl_x_xe_y_ye dl; ifstream ifs(argv[1]); ifs>>dl; f.load_data(dl.get_data_set()); f.fit(); double rmin=f.get_data_set().get_data(0).get_x(); double rmax=f.get_data_set().get_data(f.get_data_set().size()-1).get_x(); cout<<"read terr 1 2\nskip single\n"; for(int i=0;i