Difference between revisions of "830 - Haplotyper::SampleOneHaplotype()"
From Genome Analysis Wiki
Jump to navigationJump to search (Created page with "<source lang="cpp"> float Haplotyper::SampleOneHaplotype(float * vector, double first, double & second, float & choice) { for (second = 0; second < states; second++) ...") |
(No difference)
|
Revision as of 14:14, 2 October 2013
float Haplotyper::SampleOneHaplotype(float * vector, double first, double & second, float & choice)
{
for (second = 0; second < states; second++)
{
choice += vector[CalculateIndex(first, second)] * 0.5;
if (choice >= 0.0) return;
}
second = first;
}