Changeset 1262 for applications/robust/robustlib.h
- Timestamp:
- 12/13/10 19:25:45 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/robust/robustlib.h
r1254 r1262 12 12 #include <vector> 13 13 #include <list> 14 #include <map> 14 15 #include <set> 15 16 #include <algorithm> 17 #include <string> 16 18 17 19 using namespace bdm; … … 413 415 class emlig // : eEF 414 416 { 417 vector<set<ivec>> correction_factors; 415 418 416 419 /// A statistic in a form of a Hasse diagram representing a complex of convex polyhedrons obtained as a result … … 425 428 426 429 double normalization_factor; 430 431 427 432 428 433 void alter_toprow_conditions(vec condition, bool should_be_added) … … 915 920 sizevector.push_back(statistic.row_size(s)); 916 921 }*/ 917 } 922 923 924 } 925 926 vector<list<ivec>> get_correction_factors(int order) 927 { 928 for(int remaining_order = correction_factors.size();remaining_order>order;remaining_order++) 929 { 930 set<ivec> factor_templates; 931 set<ivec> final_factors; 932 933 for(int i = 1;i==number_of_parameters-order+1;i++) 934 { 935 for(int j = 1;j==remaining_order;j++) 936 { 937 factor_templates.insert(zeros(number_of_parameters-order+2)); 938 939 for(set<ivec>::iterator fac_ref = factor_templates.begin();fac_ref!=factor_templates.end();fac_ref++) 940 { 941 ivec current_template = (*fac_ref); 942 943 current_template[0]+=1; 944 current_template[i]+=1; 945 946 if(current_template[0]==remaining_order) 947 { 948 final_factors.insert(current_template.right(current_template.size()-1); 949 } 950 else 951 { 952 factor_templates.insert(current_template); 953 } 954 } 955 } 956 } 957 958 correction_factors.push_back(final_factors); 959 960 } 961 } 918 962 919 963 protected: … … 1234 1278 1235 1279 1280 1236 1281 #endif //TRAGE_H