<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=830_-_MarkovModel%3A%3ACountRecombinants%28%29</id>
	<title>830 - MarkovModel::CountRecombinants() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=830_-_MarkovModel%3A%3ACountRecombinants%28%29"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MarkovModel::CountRecombinants()&amp;action=history"/>
	<updated>2026-09-27T09:22:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=830_-_MarkovModel::CountRecombinants()&amp;diff=8736&amp;oldid=prev</id>
		<title>Goncalo: Created page with &quot;&lt;source lang=&quot;cpp&quot;&gt; double MarkovModel::CountRecombinants(float * from, float * to, double r)    {    if (r == 0)       return 0.0;     double sum = 0.0;    for (int i = 0; i ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MarkovModel::CountRecombinants()&amp;diff=8736&amp;oldid=prev"/>
		<updated>2013-09-25T18:54:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; double MarkovModel::CountRecombinants(float * from, float * to, double r)    {    if (r == 0)       return 0.0;     double sum = 0.0;    for (int i = 0; i ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
double MarkovModel::CountRecombinants(float * from, float * to, double r)&lt;br /&gt;
   {&lt;br /&gt;
   if (r == 0)&lt;br /&gt;
      return 0.0;&lt;br /&gt;
&lt;br /&gt;
   double sum = 0.0;&lt;br /&gt;
   for (int i = 0; i &amp;lt; states; i++)&lt;br /&gt;
      sum += from[i];&lt;br /&gt;
&lt;br /&gt;
   double rsum = 0.0;&lt;br /&gt;
   double nrsum = 0.0;&lt;br /&gt;
&lt;br /&gt;
   for (int i = 0; i &amp;lt; states; i++)&lt;br /&gt;
      {&lt;br /&gt;
      rsum += to[i];&lt;br /&gt;
      nrsum += from[i] * to[i];&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
   rsum *= sum * r / states;&lt;br /&gt;
   nrsum *= 1.0 - r;&lt;br /&gt;
&lt;br /&gt;
   double total = rsum + nrsum;&lt;br /&gt;
&lt;br /&gt;
   return rsum / total;&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Goncalo</name></author>
	</entry>
</feed>