Show
Ignore:
Timestamp:
08/18/11 16:02:53 (13 years ago)
Author:
sindj
Message:

Program update, kontrola vypoctu provedena, integruje spravne v nedegenerovanem pripade. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.cpp

    r1379 r1383  
    143143                                extended_coords.ins(0,-1); 
    144144 
     145                                cout << "Ext. coords:" << extended_coords << "Condition sum:" << as_toprow->condition_sum << endl; 
     146 
    145147                                double a = extended_coords*as_toprow->condition_sum; 
    146148                                if(a<current_emlig->min_ll) 
     
    152154                                //cout << "a0:" << a_0 << " a0 coords:" << base_vertex->get_coordinates() << " am:" << a_m << " am coords:" << (*vert_ref)->get_coordinates() << endl; 
    153155 
    154                                 // cout << "Absolute coords:(V"  << row_count << ")" << (*vert_ref)->get_coordinates() << endl; 
     156                                cout << "Absolute coords:(V"  << row_count << ")" << (*vert_ref)->get_coordinates() << endl; 
    155157                                //cout << "Relative coords:(V"  << row_count << ")" << relative_coords << endl; 
    156158 
     
    209211                                                                                 
    210212                                        if(k!=0) 
    211                                         {                                                
     213                                        {        
     214                                                double value = 0; 
    212215                                                ivec control_vec = ivec(); 
    213216                                                control_vec.ins(0,my_emlig->number_of_parameters-a_order+1);                                             
     
    223226                                                        } 
    224227                                                                                                         
    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;                                                  
    229229                                                } 
     230 
     231                                                simplex->insert_gamma(k,value,(*a_ref).first); 
     232                                                gamma_facs[k] += value; 
    230233                                        } 
    231234                                        else 
     
    234237                                                 
    235238                                                simplex->insert_gamma(0,value,(*a_ref).first); 
    236                                                 gamma_facs[k] += value; 
     239                                                gamma_facs[0] += value; 
    237240                                        }                                                
    238241                                }                                
     
    254257                         
    255258                        simplex->probability = int_value; 
    256                         //cout << "Probability:" << int_value << endl; 
     259                        cout << "Probability:" << int_value << endl; 
    257260                        return int_value;                
    258261                }