Show
Ignore:
Timestamp:
05/09/11 19:07:15 (13 years ago)
Author:
sindj
Message:

Pridani soft apriorna, boj s integraly. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.cpp

    r1357 r1362  
    9696        { 
    9797                // cout << ((toprow*)this)->condition << endl;           
    98  
    99                 int condition_order = ((toprow*)this)->condition_order-2; // -2 by bylo, pokud chceme uniformni apriorno 
    100  
    101                 int sigma_order = condition_order-my_emlig->number_of_parameters; 
     98                int sigma_order = ((toprow*)this)->condition_order-simplex->vertices.size()-1; 
    10299 
    103100                // cout << "C:" << condition_order << "  N:" << my_emlig->number_of_parameters << "  C+N:" << condition_order-my_emlig->number_of_parameters << endl; 
     
    147144 
    148145                                base_vertex = (*base_ref); 
    149  
    150                          
    151                                 // cout << endl << "Base coords:" << base_vertex->get_coordinates() << endl; 
     146                         
     147                                //cout << "Base coords: " << base_vertex->get_coordinates() << endl; 
     148                                //cout << "Condition: " << as_toprow->condition_sum << endl; 
     149                                //pause(10); 
    152150 
    153151                                a_0 = base_vertex->get_coordinates()*cur_condition-as_toprow->condition_sum[0]; 
     
    340338                else 
    341339                { 
     340                        cout << "Improper probability density." << endl; 
    342341                        return 0.0; 
    343342                }