Changeset 1284 for applications

Show
Ignore:
Timestamp:
02/24/11 18:51:28 (13 years ago)
Author:
sindj
Message:

Dodelani prvniho experimentu. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/main.cpp

    r1282 r1284  
    5858        {  
    5959                 
    60                 for(int i = 0;i<string_lists[j].size();i++) 
     60                for(int i = 0;i<string_lists[j].size()-1;i++) 
    6161                { 
    6262                        vector<vec> conditions; 
     
    9595 
    9696                        //emliga->step_me(0); 
     97                        ofstream myfile; 
     98                        myfile.open("c:\\robust_ar1.txt",ios::app); 
     99                        myfile << emliga->minimal_vertex->get_coordinates()[0] << ";"; 
     100                        myfile.close(); 
     101 
     102                        myfile.open("c:\\robust_ar2.txt",ios::app); 
     103                        myfile << emliga->minimal_vertex->get_coordinates()[1] << ";"; 
     104                        myfile.close(); 
     105 
    97106                        cout << "MaxLik coords:" << emliga->minimal_vertex->get_coordinates() << endl; 
    98107                        cout << "Step: " << i << endl; 
     
    100109 
    101110                cout << "One experiment finished." << endl; 
     111 
     112                ofstream myfile; 
     113                myfile.open("c:\\robust_ar1.txt",ios::app); 
     114                myfile << endl; 
     115                myfile.close(); 
     116 
     117                myfile.open("c:\\robust_ar2.txt",ios::app); 
     118                myfile << endl; 
     119                myfile.close(); 
    102120        } 
    103121