server/hamdis/legacy/hamming-distance-2.cpp
// Estimate number of generations based on 2% mutation rate,
// generation length of 10 years, and population size 100.
// This is used in the SeqGen input
Estimate number of generations based on 2% mutation rate,
generation length of 10 years, and population size 100.
This is used in the SeqGen input
Estimate number of generations based on 2% mutation rate generation length of 10 years and population size 100 . This is used in the SeqGen input
double estimate_gen(int ham, int len) {
    double gen_length = 10; 
    double mut_rate = 0.02; 
    double pop_size = 100;  
    double percent;
    percent = (ham/len);
    cout << "percent: " << percent << endl;
    double divtime;
    divtime = percent/mut_rate;
    cout << "divtime: " << divtime << endl;
    double gen;
    gen = (divtime*1000000)/gen_length;
    return gen;
}
double estimate_gen ( int ham , int len ) { double gen_length = 10 ; double mut_rate = 0.02 ; double pop_size = 100 ; double percent ; percent = ( ham / len ) ; cout << " " << percent << endl ; double divtime ; divtime = percent / mut_rate ; cout << " " << divtime << endl ; double gen ; gen = ( divtime * 1000000 ) / gen_length ; return gen ; }
Estimate number of generations based on 2% mutation rate,
generation length of 10 years, and population size 100.
Estimate number of generations based on 2% mutation rate generation length of 10 years and population size 100 .
// these inputs may want to be made flexible // this as well // this as well // Find percentage different: // Find divergence time in millions of years: // Lastly, find number of generations