Changeset 1383 for applications/robust/robustlib.cpp
- Timestamp:
- 08/18/11 16:02:53 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/robust/robustlib.cpp
r1379 r1383 143 143 extended_coords.ins(0,-1); 144 144 145 cout << "Ext. coords:" << extended_coords << "Condition sum:" << as_toprow->condition_sum << endl; 146 145 147 double a = extended_coords*as_toprow->condition_sum; 146 148 if(a<current_emlig->min_ll) … … 152 154 //cout << "a0:" << a_0 << " a0 coords:" << base_vertex->get_coordinates() << " am:" << a_m << " am coords:" << (*vert_ref)->get_coordinates() << endl; 153 155 154 //cout << "Absolute coords:(V" << row_count << ")" << (*vert_ref)->get_coordinates() << endl;156 cout << "Absolute coords:(V" << row_count << ")" << (*vert_ref)->get_coordinates() << endl; 155 157 //cout << "Relative coords:(V" << row_count << ")" << relative_coords << endl; 156 158 … … 209 211 210 212 if(k!=0) 211 { 213 { 214 double value = 0; 212 215 ivec control_vec = ivec(); 213 216 control_vec.ins(0,my_emlig->number_of_parameters-a_order+1); … … 223 226 } 224 227 225 double value = bracket_factor*factor_multiplier*k_multiplier; 226 227 simplex->insert_gamma(k,value,(*a_ref).first); 228 gamma_facs[k] += value; 228 value += bracket_factor*factor_multiplier*k_multiplier; 229 229 } 230 231 simplex->insert_gamma(k,value,(*a_ref).first); 232 gamma_facs[k] += value; 230 233 } 231 234 else … … 234 237 235 238 simplex->insert_gamma(0,value,(*a_ref).first); 236 gamma_facs[ k] += value;239 gamma_facs[0] += value; 237 240 } 238 241 } … … 254 257 255 258 simplex->probability = int_value; 256 //cout << "Probability:" << int_value << endl;259 cout << "Probability:" << int_value << endl; 257 260 return int_value; 258 261 }