Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 1: Line 1:  
<source lang="cpp">
 
<source lang="cpp">
   −
float Haplotyper::SampleHaplotypes(float * vector, int & first, int & second)
+
float Haplotyper::SampleHaplotypes(float * vector, int & first, int & second, Random & rand)
 
   {
 
   {
  first = 0;
  −
  second = 0;
  −
   
   float sum = 0.0;
 
   float sum = 0.0;
 +
  float *probability = vector;
    
   // Calculate sum over all states
 
   // Calculate sum over all states
Line 21: Line 19:  
   sum = 0.0;
 
   sum = 0.0;
   −
   for (probability = leftMatrices[markers - 1]; first < states; first++)
+
   for (probability = vector, first = 0; first < states; first++)
 
       {
 
       {
 
       for (second = 0; second <= first; second++)
 
       for (second = 0; second <= first; second++)

Navigation menu