<?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%3ACountErrors%28%29</id>
	<title>830 - MarkovModel::CountErrors() - 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%3ACountErrors%28%29"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MarkovModel::CountErrors()&amp;action=history"/>
	<updated>2026-09-28T08:27:11Z</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::CountErrors()&amp;diff=8737&amp;oldid=prev</id>
		<title>Goncalo: Created page with &quot;&lt;source lang=&quot;cpp&quot;&gt; double MarkovModel::CountErrors(float * vector, char ** haplotypes, int position, char observed, double e, double freq)    {    if (observed == 0)       re...&quot;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=830_-_MarkovModel::CountErrors()&amp;diff=8737&amp;oldid=prev"/>
		<updated>2013-09-25T18:57:26Z</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::CountErrors(float * vector, char ** haplotypes, int position, char observed, double e, double freq)    {    if (observed == 0)       re...&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::CountErrors(float * vector, char ** haplotypes, int position, char observed, double e, double freq)&lt;br /&gt;
   {&lt;br /&gt;
   if (observed == 0)&lt;br /&gt;
      return e;&lt;br /&gt;
&lt;br /&gt;
   double match = 0;&lt;br /&gt;
   double mismatch = 0;&lt;br /&gt;
&lt;br /&gt;
   for (int i = 0; i &amp;lt; states; i++)&lt;br /&gt;
      if (haplotypes[i][position] == observed)&lt;br /&gt;
         match += vector[i];&lt;br /&gt;
      else&lt;br /&gt;
         mismatch += vector[i];&lt;br /&gt;
&lt;br /&gt;
   mismatch = (match + mismatch) * e * freq;&lt;br /&gt;
   match *= 1.0 - e;&lt;br /&gt;
&lt;br /&gt;
   return mismatch / (mismatch + match);&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Goncalo</name></author>
	</entry>
</feed>