Changeset 879

Show
Ignore:
Timestamp:
09/30/07 15:06:38 (2 years ago)
Author:
luc
Message:

Fixed problem with prior_prob

Location:
luc/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • luc/trunk/calc_prob.cpp

    r876 r879  
    2828        double rateRtem = (1 - prevalence) * rateR; 
    2929 
    30         double probtot = rateR + rateCcas + rateCtem + rateM + rateRcas + rateRtem; 
     30        double probtot = rateCcas + rateCtem + rateM + rateRcas + rateRtem; 
    3131 
    3232        prob.prior.coal_cas = rateCcas / probtot; 
  • luc/trunk/main.cpp

    r878 r879  
    104104     environment variable GSL_RNG_TYPE */ 
    105105 
    106   gsl_rng *r = make_generator(27); 
     106  gsl_rng *r = make_generator(22); 
    107107 
    108108  //  taux_rec_cas = rho*n_cas/2 ; 
     
    12081208                single_likelihood = my_state.get_likelihood() ; 
    12091209                average_likelihood += single_likelihood ; 
     1210                cout << "single_likelihood : " << single_likelihood << endl ; 
    12101211        } 
    12111212 
  • luc/trunk/state.cpp

    r878 r879  
    7575 
    7676        likelihood(event) ; 
    77         //print_likelihood() ; 
     77        print_likelihood() ; 
    7878 
    7979        // perform event (update container, compatibility table) 
     
    8181        adjust_container(event) ; 
    8282        adjust_compat_table(event) ; 
    83         //print_m_counts() ; 
    84         //print_n() ; 
     83        print_m_counts() ; 
     84        print_n() ; 
    8585 
    8686        //print_compat_table() ;