<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DkAFRX09eSp7ImA9WhRUF0U.&quot;"><id>tag:blogger.com,1999:blog-32050487</id><updated>2012-01-28T22:05:14.361+01:00</updated><category term="extra" /><category term="asterisk" /><category term="reinforcement learning" /><category term="python" /><category term="STL" /><category term="books" /><category term="online TV" /><category term="TD" /><category term="mathematics" /><category term="voip" /><category term="spoken dialogue systems" /><category term="statistics" /><category term="machine learning" /><category term="c++" /><category term="SLTC" /><title>Božský Filip</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://bozskyfilip.blogspot.com/" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/BoskFilip" /><feedburner:info uri="boskfilip" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkIGQ3syeSp7ImA9WhRUF0U.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-6946421468965789257</id><published>2012-01-28T21:54:00.001+01:00</published><updated>2012-01-28T22:02:02.591+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T22:02:02.591+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="statistics" /><category scheme="http://www.blogger.com/atom/ns#" term="mathematics" /><category scheme="http://www.blogger.com/atom/ns#" term="machine learning" /><title>Connection between MaxEnt and Logistic Regression</title><content type="html">This is worth reading.&lt;br /&gt;
&lt;br /&gt;
McDonald, Ryan. 2007. &lt;a href="http://www.ryanmcd.com/courses/gslt2007/gslt2007.pdf" target="_blank"&gt;Generalized Linear Classifiers in NLP&lt;/a&gt;. Course presented to the Swedish Graduate School in Language Technology.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-6946421468965789257?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-WuHsmF6TB7vsLXmPyUJsec85Js/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-WuHsmF6TB7vsLXmPyUJsec85Js/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-WuHsmF6TB7vsLXmPyUJsec85Js/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-WuHsmF6TB7vsLXmPyUJsec85Js/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://www.ryanmcd.com/courses/gslt2007/gslt2007.pdf" title="Connection between MaxEnt and Logistic Regression" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/6946421468965789257/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=6946421468965789257" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/6946421468965789257?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/6946421468965789257?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/pFUFYkZD45c/connection-between-maxent-and-logistic.html" title="Connection between MaxEnt and Logistic Regression" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2012/01/connection-between-maxent-and-logistic.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04ASH48cSp7ImA9WhZbGUk.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-2155571046276692258</id><published>2011-06-22T16:32:00.002+02:00</published><updated>2011-06-24T22:05:49.079+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-24T22:05:49.079+02:00</app:edited><title>I am in a train.</title><content type="html">&lt;div&gt;&lt;br /&gt;&lt;img src='http://lh6.ggpht.com/-nYTW4FkzprQ/TgH8_kySXYI/AAAAAAABQBo/FigoBzih9ms/1308753341760.png' /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-2155571046276692258?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/np4oI7Alz_JPEN86_xSGXIkjZoQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/np4oI7Alz_JPEN86_xSGXIkjZoQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/np4oI7Alz_JPEN86_xSGXIkjZoQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/np4oI7Alz_JPEN86_xSGXIkjZoQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/2155571046276692258/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=2155571046276692258" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/2155571046276692258?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/2155571046276692258?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/_gEa4OTTH1I/i-am-in-train.html" title="I am in a train." /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/-nYTW4FkzprQ/TgH8_kySXYI/AAAAAAABQBo/FigoBzih9ms/s72-c/1308753341760.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2011/06/i-am-in-train.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUBQnkyeip7ImA9WhZUF00.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-4878605985607308946</id><published>2011-06-10T12:51:00.002+02:00</published><updated>2011-06-10T12:54:13.792+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-10T12:54:13.792+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="spoken dialogue systems" /><category scheme="http://www.blogger.com/atom/ns#" term="books" /><category scheme="http://www.blogger.com/atom/ns#" term="mathematics" /><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning" /><title>ACM Transactions on Speech and Language Processing (TSLP)</title><content type="html">&lt;a href="http://portal.acm.org/citation.cfm?id=1966407&amp;amp;picked=prox&amp;amp;CFID=27994867&amp;amp;CFTOKEN=71989152"&gt;ACM Transactions on Speech and Language Processing (TSLP)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It has been just published a special issue on Machine Learning for Robust and Adaptive Spoken Dialogue Systems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-4878605985607308946?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FZwCGTzex8fYbBRAwOLWZ6WL-6U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FZwCGTzex8fYbBRAwOLWZ6WL-6U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FZwCGTzex8fYbBRAwOLWZ6WL-6U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FZwCGTzex8fYbBRAwOLWZ6WL-6U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://portal.acm.org/citation.cfm?id=1966407&amp;picked=prox&amp;CFID=27994867&amp;CFTOKEN=71989152" title="ACM Transactions on Speech and Language Processing (TSLP)" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/4878605985607308946/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=4878605985607308946" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/4878605985607308946?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/4878605985607308946?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/ug1Xd6ZXtoY/acm-transactions-on-speech-and-language.html" title="ACM Transactions on Speech and Language Processing (TSLP)" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2011/06/acm-transactions-on-speech-and-language.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUFQngyeSp7ImA9WhZUF00.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-1564979689866439337</id><published>2011-06-08T16:10:00.002+02:00</published><updated>2011-06-10T12:53:33.691+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-10T12:53:33.691+02:00</app:edited><title>Stavíme tunely v OpenSSH - Root.cz</title><content type="html">&lt;a href="http://www.root.cz/clanky/stavime-tunely-v-openssh/"&gt;Stavíme tunely v OpenSSH - Root.cz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Toto je opravdu zajimave. Zejemna tathle ta citace. &lt;br /&gt;&lt;br /&gt;Dynamické tunelování&lt;br /&gt;&lt;br /&gt;... Dovolíme si tedy problematiku přeskočit a podívat se rovnou na dynamické tunelování:&lt;br /&gt;&lt;br /&gt;$ ssh -D1080 user@server &lt;br /&gt;Tímto jednoduchým příkazem jsme z SSH klienta vyrobili SOCKS proxy server. Všechny požadavky o spojení, které SOCKS server obdrží, protuneluje SSH protokolem a vyřídí na straně SSH serveru. Stačí tedy v aplikaci, jako je webový prohlížeč nebo poštovní klient, nastavit použití SOCKS proxy serveru (verze 5 nebo 4) s adresou localhost:1080. Od té chvíle bude veškerý provoz směrován tunelem. Jak snadné.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-1564979689866439337?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VniYtsQDhNcpKIAnTN7w9fVVFsU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VniYtsQDhNcpKIAnTN7w9fVVFsU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VniYtsQDhNcpKIAnTN7w9fVVFsU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VniYtsQDhNcpKIAnTN7w9fVVFsU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://www.root.cz/clanky/stavime-tunely-v-openssh/" title="Stavíme tunely v OpenSSH - Root.cz" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/1564979689866439337/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=1564979689866439337" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1564979689866439337?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1564979689866439337?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/nDHNFhVyO88/stavime-tunely-v-openssh-rootcz.html" title="Stavíme tunely v OpenSSH - Root.cz" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2011/06/stavime-tunely-v-openssh-rootcz.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8HSXw_fyp7ImA9WhZQE0o.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-1899872802609957751</id><published>2011-04-21T11:23:00.000+02:00</published><updated>2011-04-21T11:23:58.247+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-21T11:23:58.247+02:00</app:edited><title>Education: The PhD factory : Nature News</title><content type="html">I foresee a gloomy future for most of the postdocs.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.nature.com/news/2011/110420/full/472276a.html?s=news_rss"&gt;Education: The PhD factory : Nature News&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-1899872802609957751?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TLmH8HwszZsVN-trg59-3C6GN1Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TLmH8HwszZsVN-trg59-3C6GN1Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TLmH8HwszZsVN-trg59-3C6GN1Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TLmH8HwszZsVN-trg59-3C6GN1Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://www.nature.com/news/2011/110420/full/472276a.html?s=news_rss" title="Education: The PhD factory : Nature News" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/1899872802609957751/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=1899872802609957751" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1899872802609957751?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1899872802609957751?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/yyNDZD5K7BE/education-phd-factory-nature-news.html" title="Education: The PhD factory : Nature News" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2011/04/education-phd-factory-nature-news.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYDRHY-fip7ImA9WhZQE08.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-5567102678658868638</id><published>2011-04-20T19:48:00.003+02:00</published><updated>2011-04-20T19:56:15.856+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-20T19:56:15.856+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="statistics" /><category scheme="http://www.blogger.com/atom/ns#" term="mathematics" /><title>Great lecture on probability measures</title><content type="html">This is a very nice and easy to follow lecture on probability measures for beginners. It starts with the definition of measures, sigma algebra, continues with explanations of integrals, and abstract probability space, and ends with stochastic processes such as a Dirichlet process or a Gaussian process.&lt;br /&gt;&lt;br /&gt;&lt;a href='http://videolectures.net/mlss09uk_orbanz_fnbm/'&gt;&lt;br /&gt;  &lt;img src='http://videolectures.net/mlss09uk_orbanz_fnbm/thumb.jpg' border=0/&gt;&lt;br /&gt;  &lt;br/&gt;Foundations of Nonparametric Bayesian Methods &lt;/a&gt;&lt;br/&gt;&lt;br /&gt;Peter Orbanz&lt;br /&gt;&lt;br/&gt;&lt;i&gt;&lt;small&gt;2 videos&lt;/small&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-5567102678658868638?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LVpRExckV3oYwrcxa1Hd1H0Ach0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LVpRExckV3oYwrcxa1Hd1H0Ach0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LVpRExckV3oYwrcxa1Hd1H0Ach0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LVpRExckV3oYwrcxa1Hd1H0Ach0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://videolectures.net/mlss09uk_orbanz_fnbm/" title="Great lecture on probability measures" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/5567102678658868638/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=5567102678658868638" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/5567102678658868638?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/5567102678658868638?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/wZVuGxRubkk/great-lecture-on-probability-measures.html" title="Great lecture on probability measures" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2011/04/great-lecture-on-probability-measures.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMFQnk9eip7ImA9WxBbGU4.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-1536063215990715556</id><published>2010-03-18T16:00:00.001+01:00</published><updated>2010-03-18T19:20:13.762+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-18T19:20:13.762+01:00</app:edited><title>Dialogue Systems Group - University of Cambridge</title><content type="html">I have recently developed a web interface to a dialogue system on which I am currently working in Cambridge. You can find it here:&lt;br /&gt;&lt;a href="http://mi.eng.cam.ac.uk/research/dialogue/demo.html"&gt;Dialogue Systems Group - University of Cambridge - CamInfo demo&lt;/a&gt; &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can find similar demo on Amazon Mechanical Turk; however, in this case  you can also make some money. We need volunteers! Check out &lt;a href="https://www.mturk.com/mturk/searchbar?selectedSearchType=hitgroups&amp;amp;searchWords=automated+tourist+information&amp;amp;minReward=0.00&amp;amp;x=0&amp;amp;y=0"&gt;www.mturk.com Cambridge&lt;/a&gt; .&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-1536063215990715556?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t9XOf4eNmeoFqKiIs149lRe3j3g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t9XOf4eNmeoFqKiIs149lRe3j3g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/t9XOf4eNmeoFqKiIs149lRe3j3g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t9XOf4eNmeoFqKiIs149lRe3j3g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://mi.eng.cam.ac.uk/research/dialogue/demo.html" title="Dialogue Systems Group - University of Cambridge" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/1536063215990715556/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=1536063215990715556" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1536063215990715556?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/1536063215990715556?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/UO3CsV1UqWo/dialogue-systems-group-university-of.html" title="Dialogue Systems Group - University of Cambridge" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2010/03/dialogue-systems-group-university-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYDQH09fyp7ImA9WxBbGU8.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-7312327469284810402</id><published>2010-03-18T15:55:00.001+01:00</published><updated>2010-03-18T15:56:11.367+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-18T15:56:11.367+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="voip" /><category scheme="http://www.blogger.com/atom/ns#" term="asterisk" /><title>CDR reporting (to MySQL)</title><content type="html">If you want to enable CDR logging using MySQL on Asterisk Now 1.4 CentOS distribution. You will have to install the following packages:&lt;br /&gt;- asterisk14-addons-core &lt;br /&gt;- asterisk14-addons-mysql&lt;br /&gt;&lt;br /&gt;Although the MySQL logging is necessary for installed FreePBX, the asterisk14-addons-mysql package was not initially installed.&lt;br /&gt;&lt;br /&gt;More details can be found here:&lt;br /&gt;&lt;a href="https://issues.asterisk.org/view.php?id=14931"&gt;0014931: CDR reporting (to MySQL) is completely broken in AsteriskNOW 1.5.0 - Asterisk.org Issue Tracker&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-7312327469284810402?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0kdxWXyKIHJW_4YekyBh65RvACU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0kdxWXyKIHJW_4YekyBh65RvACU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0kdxWXyKIHJW_4YekyBh65RvACU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0kdxWXyKIHJW_4YekyBh65RvACU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="https://issues.asterisk.org/view.php?id=14931" title="CDR reporting (to MySQL)" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/7312327469284810402/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=7312327469284810402" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/7312327469284810402?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/7312327469284810402?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/UaWFOcDWzIg/cdr-reporting-to-mysql.html" title="CDR reporting (to MySQL)" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2010/03/cdr-reporting-to-mysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUNRHYzcSp7ImA9WxBTF0U.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-7414579763609275061</id><published>2009-12-14T10:49:00.002+01:00</published><updated>2009-12-14T10:51:35.889+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-14T10:51:35.889+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="statistics" /><category scheme="http://www.blogger.com/atom/ns#" term="books" /><title>Information Theory, Inference, and Learning Algorithms</title><content type="html">If you are looking for a very good book about machine learning look at this free on-line  &lt;br /&gt;&lt;a href="http://www.inference.phy.cam.ac.uk/mackay/itila/book.html"&gt;Information Theory, Inference, and Learning Algorithms&lt;/a&gt; book.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-7414579763609275061?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6WynyerJhlqOrpHhM1gP6cB-9ss/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6WynyerJhlqOrpHhM1gP6cB-9ss/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6WynyerJhlqOrpHhM1gP6cB-9ss/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6WynyerJhlqOrpHhM1gP6cB-9ss/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/7414579763609275061/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=7414579763609275061" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/7414579763609275061?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/7414579763609275061?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/gtjie-Wc2BQ/information-theory-inference-and.html" title="Information Theory, Inference, and Learning Algorithms" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/12/information-theory-inference-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcHQnk_eyp7ImA9WxVbFkQ.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-6681543137280948402</id><published>2009-04-02T18:33:00.009+02:00</published><updated>2009-04-02T19:07:13.743+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-02T19:07:13.743+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="python" /><category scheme="http://www.blogger.com/atom/ns#" term="TD" /><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning" /><title>Temporal-Difference Learning Policy Evaluation in Python</title><content type="html">&lt;code&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;In the code bellow, is an example of policy evaluation for very simple task. Example is taken from the book: &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 0); "&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;"Reinforcement Learning: An Introduction, Surto and Barto"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 0); "&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;#!/usr/local/bin/python&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;br /&gt;"""&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#993300;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;This is an example of policy evaluation for a random walk policy.&lt;br /&gt;&lt;br /&gt;Example 6.2: Random Walk from the book:&lt;br /&gt;"Reinforcement Learning: An Introduction, Surto and Barto"&lt;br /&gt;&lt;br /&gt;The policy is evaluated by dynamic programing and TD(0).&lt;br /&gt;&lt;br /&gt;In this example, the policy can start in five states 1, 2, 3, 4, 5 and end in&lt;br /&gt;two states 0 and 6. The allowed transitions between the states are as follwes:&lt;br /&gt;&lt;br /&gt;0 &lt;-&gt; 1 &lt;-&gt; 2 &lt;-&gt; 3 &lt;-&gt; 4 &lt;-&gt; 5 &lt;-&gt; 6&lt;br /&gt;&lt;br /&gt;The reward for ending in the state 6 is 1.&lt;br /&gt;The reward for ending in the state 0 is 0.&lt;br /&gt;&lt;br /&gt;In any state, except the final states, you can take two actions: 'left' and 'right'.&lt;br /&gt;In the final states the policy and episodes end.&lt;br /&gt;&lt;br /&gt;Because this example implements the random walk policy then both actions can be&lt;br /&gt;taken with the probability 0.5 .&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;    """&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;import random&lt;/span&gt;&lt;/div&gt;&lt;/code&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;# Instead of letters, I use number for the states. The states 0 and 6 are the final states.&lt;br /&gt;# The states 1,...,5 are the states A,...,E&lt;br /&gt;&lt;br /&gt;states = range(0,7)&lt;br /&gt;finalStates = [0,6]&lt;br /&gt;reward = [ 1 if s == 6 else 0 for s in states]  &lt;br /&gt;&lt;br /&gt;def policy(s):&lt;br /&gt;  """Random walk policy: ations are 'go left' nand 'go right'."""&lt;br /&gt;&lt;br /&gt;  return random.choice(['left', 'right'])&lt;br /&gt;&lt;br /&gt;def execute_policy(s, a):&lt;br /&gt;  """Change state based on the taken action."""&lt;br /&gt;&lt;br /&gt;  if a == 'left':&lt;br /&gt;      return s - 1&lt;br /&gt;  else:&lt;br /&gt;      return s + 1&lt;br /&gt;&lt;br /&gt;def TD_0(V_star, alpha, gamma,  numOfEpisodes = 10000):&lt;br /&gt;  """Use Temporal-Difference Learning to learn V^*."""&lt;br /&gt;&lt;br /&gt;  for episode in range(numOfEpisodes):&lt;br /&gt;      # select random start state&lt;br /&gt;      s = random.randint(min(states)+1, max(states)-1)&lt;br /&gt;    &lt;br /&gt;      endOfEpisode = False&lt;br /&gt;      while not endOfEpisode:&lt;br /&gt;          if s in finalStates:&lt;br /&gt;              # evaluate the value of the final state&lt;br /&gt;              V_star[s] = V_star[s] + alpha*(reward[s] - V_star[s])&lt;br /&gt;        &lt;br /&gt;              # because we are in the final state then end the episode&lt;br /&gt;              endOfEpisode = True&lt;br /&gt;              continue&lt;br /&gt;          else:&lt;br /&gt;              # get an action for this state from the policy&lt;br /&gt;              a = policy(s)&lt;br /&gt;            &lt;br /&gt;              # execute policy =&gt; take an action&lt;br /&gt;              s_prime = execute_policy(s, a)&lt;br /&gt;&lt;br /&gt;              # evaluate the action&lt;br /&gt;              V_star[s] = V_star[s] + alpha*(reward[s] + gamma*V_star[s_prime] - V_star[s])&lt;br /&gt;            &lt;br /&gt;              s = s_prime&lt;br /&gt;&lt;br /&gt;def V(s, d = 0):&lt;br /&gt;  """Value function computed by dynamic programing."""&lt;br /&gt;&lt;br /&gt;  if d &gt; 20:&lt;br /&gt;      return 0&lt;br /&gt;    &lt;br /&gt;  if s in finalStates:&lt;br /&gt;      return reward[s]&lt;br /&gt;    &lt;br /&gt;  return 0.5*(V(s-1, d+1) + V(s+1, d+1))&lt;br /&gt;&lt;br /&gt;###############################################################################&lt;br /&gt;##&lt;br /&gt;##  Experiments&lt;br /&gt;##&lt;br /&gt;###############################################################################&lt;br /&gt;&lt;br /&gt;gamma = 1&lt;br /&gt;&lt;br /&gt;print("TD(0): alpha = 0.15")&lt;br /&gt;&lt;br /&gt;# init the value function&lt;br /&gt;V_star = [0.5 for s in states]&lt;br /&gt;TD_0(V_star, 0.15, gamma, 100000)&lt;br /&gt;for s, V_s in enumerate(V_star):&lt;br /&gt;  V_s_star = s/6.0&lt;br /&gt;  print("V(%d) = %0.3f   err = %.3f" % (s, V_s, abs(V_s_star - V_s)))&lt;br /&gt;&lt;br /&gt;print("TD(0): alpha = 0.05")&lt;br /&gt;&lt;br /&gt;# init the value function&lt;br /&gt;V_star = [0.5 for s in states]&lt;br /&gt;TD_0(V_star, 0.05, gamma, 100000)&lt;br /&gt;for s, V_s in enumerate(V_star):&lt;br /&gt;  V_s_star = s/6.0&lt;br /&gt;  print("V(%d) = %0.3f   err = %.3f" % (s, V_s, abs(V_s_star - V_s)))&lt;br /&gt;&lt;br /&gt;print "Dynamic programing:"&lt;br /&gt;for s in states:&lt;br /&gt;  V_s_star = s/6.0&lt;br /&gt;  V_s = V(s)&lt;br /&gt;  print("V(%d) = %0.3f   err = %.3f" % (s, V_s, abs(V_s_star - V_s)))&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-6681543137280948402?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YN_BQ1WozWL47lysTC8PtHoA94Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YN_BQ1WozWL47lysTC8PtHoA94Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YN_BQ1WozWL47lysTC8PtHoA94Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YN_BQ1WozWL47lysTC8PtHoA94Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/6681543137280948402/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=6681543137280948402" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/6681543137280948402?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/6681543137280948402?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/xYM2xkmLnTg/temporal-differential-learning-policy.html" title="Temporal-Difference Learning Policy Evaluation in Python" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/04/temporal-differential-learning-policy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMAQXk8eSp7ImA9WxVbFE8.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-8609074152680043646</id><published>2009-03-30T16:43:00.003+02:00</published><updated>2009-03-30T16:47:20.771+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-30T16:47:20.771+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SLTC" /><title>Loebner Prize at InterSpeech 2009</title><content type="html">&lt;span class="Apple-style-span" style="color: rgb(114, 114, 114); font-family: arial; font-size: 13px; line-height: 19px; "&gt;&lt;div&gt;I have recetly written an article about the Loebner Prize contest. The contest has been organized every year since 1991 and it will be held in conjunction with &lt;a href="http://www.interspeech2009.org/conference/"&gt;InterSpeech, in Brighton, UK&lt;/a&gt; this year. Check out the whole &lt;a href="http://www.signalprocessingsociety.org/technical-committees/list/sl-tc/spl-nl/2009-Jan/loebner-prize/"&gt;article&lt;/a&gt;!&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-8609074152680043646?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6QERCGyEENlSgU3V8n4u285kGNw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6QERCGyEENlSgU3V8n4u285kGNw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6QERCGyEENlSgU3V8n4u285kGNw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6QERCGyEENlSgU3V8n4u285kGNw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/8609074152680043646/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=8609074152680043646" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8609074152680043646?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8609074152680043646?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/GMuAR4qDbKM/loebner-prize-at-interspeech-2009.html" title="Loebner Prize at InterSpeech 2009" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/03/loebner-prize-at-interspeech-2009.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcGR3k9eCp7ImA9WxVUGEQ.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-2206644890290711633</id><published>2009-03-24T11:58:00.005+01:00</published><updated>2009-03-24T12:10:26.760+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-24T12:10:26.760+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="statistics" /><title>Difference between the Standard Deviation, Standard Error and Confidence Itervals</title><content type="html">&lt;div&gt;In its simplest:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;the standard deviation represents the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;variability&lt;/span&gt; of input values,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the standard error (of the mean) represents &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;variability&lt;/span&gt; of computed mean,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the confidence intervals represents where the 'true' mean value might lie.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Computation:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;the standard deviation is computed from the variance of your data - input values,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the standard error is computed from the standard deviation,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the confidence intervals are computed from the standard error.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Read this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Many people confuse the standard deviation (SD) and the standard error of the mean (SE) and are unsure which, if either, to use in presenting data in graphical or tabular form. The SD is an index of the variability of the original data points and should be reported in all studies. The SE reflects the variability of the mean values, as if the study were repeated a large number of times. By itself, the SE is not particularly useful; however, it is used in constructing 95% and 99% confidence intervals (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;CIs&lt;/span&gt;), which indicate a range of values within which the “true” value lies. The CI shows the reader how accurate the estimates of the population values actually are. If graphs are used, error bars equal to plus and minus 2 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;SEs&lt;/span&gt; (which show the 95% CI) should be drawn around mean values. Both statistical significance testing and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;CIs&lt;/span&gt; are useful because they assist the reader in determining the meaning of the findings.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;(Can J Psychiatry 1996;41:498–502)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-2206644890290711633?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0r4pI3cBCYITZyuRvxvQRd9bhAM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0r4pI3cBCYITZyuRvxvQRd9bhAM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0r4pI3cBCYITZyuRvxvQRd9bhAM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0r4pI3cBCYITZyuRvxvQRd9bhAM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/2206644890290711633/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=2206644890290711633" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/2206644890290711633?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/2206644890290711633?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/eVkI4pJ5uyQ/difference-between-standard-deviation.html" title="Difference between the Standard Deviation, Standard Error and Confidence Itervals" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/03/difference-between-standard-deviation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QMQn46eSp7ImA9WxVbFE8.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-985612776050242866</id><published>2009-03-16T17:21:00.000+01:00</published><updated>2009-03-30T17:03:03.011+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-30T17:03:03.011+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="c++" /><category scheme="http://www.blogger.com/atom/ns#" term="extra" /><category scheme="http://www.blogger.com/atom/ns#" term="online TV" /><title>Google Testing Blog: TotT: EXPECT vs. ASSERT</title><content type="html">&lt;div&gt;Google commented on different types of assertations in their testing framework (&lt;a href="http://googletesting.blogspot.com/2008/07/tott-expect-vs-assert.html#links"&gt;Google Testing Blog: EXPECT vs. ASSERT)&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have found assertations in my code very useful on many occasions; however, I do not see any need for the EXPECT function. If your code is broken then it is broken and there is no point in continuing and testing conditions which are not likely to be met. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is like with C++ compiler errors. The most important error is the firtst error. The rest of the erorrs is usually rubish and useless. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-985612776050242866?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/i7FDGjQMsfM3TGb480WTSoKIqdU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/i7FDGjQMsfM3TGb480WTSoKIqdU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/i7FDGjQMsfM3TGb480WTSoKIqdU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/i7FDGjQMsfM3TGb480WTSoKIqdU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://googletesting.blogspot.com/2008/07/tott-expect-vs-assert.html#links" title="Google Testing Blog: TotT: EXPECT vs. ASSERT" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/985612776050242866/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=985612776050242866" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/985612776050242866?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/985612776050242866?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/7G-bNU2xLo8/google-testing-blog-tott-expect-vs.html" title="Google Testing Blog: TotT: EXPECT vs. ASSERT" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/03/google-testing-blog-tott-expect-vs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UARXs8eyp7ImA9WxVVF0U.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-8238151096062576467</id><published>2009-03-11T15:02:00.010+01:00</published><updated>2009-03-11T15:20:44.573+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-11T15:20:44.573+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="c++" /><title>Linked list sorted in an ascending order</title><content type="html">&lt;span class="Apple-style-span"  style="  white-space: pre; font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Again to practice some of skills I wrote linked list sorted in an ascending order. It is very simple example and it performs only two operation:&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;inserting an item into the appropriate position in the list&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;printing the whole list on the screen&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre; font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;The following code is placed in the public domain. Use it as you wish. The code can be downloaded with the solution project file for MS Visual Studio 2008 from &lt;a href="http://filip.jurcicek.googlepages.com/LinkedList.rar"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-family:Arial;"&gt;&lt;code&gt;// LinkedList.cpp : Defines the entry point for the console application.&lt;br /&gt;//&lt;br /&gt;&lt;br /&gt;#include "stdafx.h"&lt;br /&gt;#include&lt;iostream&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;The supplied C code fragment is intended to implement a linked list of&lt;br /&gt;integers stored in ascending order. Each element of the list is a struct&lt;br /&gt;of type Item holding the integer value, a pointer pred to the previous&lt;br /&gt;element, if any, and a pointer succ to the succeeding element, if any. The&lt;br /&gt;variable head points to the ?rst element in the list, and tail points to&lt;br /&gt;the last element. Initially, both head and tail are NULL. The function&lt;br /&gt;insert is intended to insert its argument x into the list. If x is already in&lt;br /&gt;the list, insert should do nothing.&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;struct Item {&lt;br /&gt;int value;    // the integer value&lt;br /&gt;Item* succ;   // succeeding value&lt;br /&gt;Item* pred;   // preceding value&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;Item* head = NULL;&lt;br /&gt;Item* tail = NULL;&lt;br /&gt;&lt;br /&gt;Item* createItem(int x, Item* succ, Item* pred)&lt;br /&gt;{&lt;br /&gt;Item* item = new Item;&lt;br /&gt;item-&gt;value = x;&lt;br /&gt;item-&gt;succ = succ;&lt;br /&gt;item-&gt;pred = pred;&lt;br /&gt;&lt;br /&gt;return item;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;Insert x into linked list&lt;br /&gt;&lt;br /&gt;There are 5 possible cases, any four of these will suffice&lt;br /&gt;- list is initially empty&lt;br /&gt;- x is smaller than any number in the list&lt;br /&gt;- x is larger than any number in the list&lt;br /&gt;- x is already in the list&lt;br /&gt;- the normal case i.e. none of the above&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;void insert(int x)&lt;br /&gt;{&lt;br /&gt;Item *p = head , *q;&lt;br /&gt;if(!p) {&lt;br /&gt;// add the first item&lt;br /&gt;head = tail = createItem(x,NULL,NULL);&lt;br /&gt;}&lt;br /&gt;else if (x &gt; tail-&gt;value){&lt;br /&gt;// add the largest item in the list&lt;br /&gt;tail-&gt;succ = createItem(x,NULL,tail);&lt;br /&gt;tail = tail-&gt;succ;&lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;while (x &gt; p-&gt;value)&lt;br /&gt; p = p-&gt;succ;&lt;br /&gt;&lt;br /&gt;if (x==p-&gt;value)&lt;br /&gt; // do not add itme because it already exists&lt;br /&gt; return;&lt;br /&gt;&lt;br /&gt;// add the item before p because x &lt; q =" createItem(x,"&gt;pred);   // create item, pass the succesor and the predcesor&lt;br /&gt;q-&gt;succ-&gt;pred = q;               // modify the succesor of q so that it points to q&lt;br /&gt;q-&gt;pred-&gt;succ = q;               // modify the predcesor of q so that it points to q&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void printList(void)&lt;br /&gt;{&lt;br /&gt;Item* p = head;&lt;br /&gt;int counter = 0;&lt;br /&gt;&lt;br /&gt;cout &lt;&lt; "------------------------------------------------------------" &lt;&lt;&gt;value &lt;&lt; p =" p-"&gt;succ;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int _tmain(int argc, _TCHAR* argv[])&lt;br /&gt;{&lt;br /&gt;cout &lt;&lt; "Ascending linked list demonstration." &lt;&lt; i =" 0;"&gt;&lt;/iostream&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" white-space: pre; font-family:Arial;"&gt;The output of the program is as follows:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;code&gt;Ascending linked list demonstration.&lt;br /&gt;--------------------------------------&lt;br /&gt;Item number:0 Item value:1&lt;br /&gt;--------------------------------------&lt;br /&gt;Item number:0 Item value:1&lt;br /&gt;Item number:1 Item value:10&lt;br /&gt;--------------------------------------&lt;br /&gt;Item number:0 Item value:1&lt;br /&gt;Item number:1 Item value:5&lt;br /&gt;Item number:2 Item value:10&lt;br /&gt;--------------------------------------&lt;br /&gt;Item number:0 Item value:1&lt;br /&gt;Item number:1 Item value:5&lt;br /&gt;Item number:2 Item value:10&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre;font-family:Arial;font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-8238151096062576467?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RhhjKavO6oRuXGqnbIe8zggiLro/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RhhjKavO6oRuXGqnbIe8zggiLro/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RhhjKavO6oRuXGqnbIe8zggiLro/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RhhjKavO6oRuXGqnbIe8zggiLro/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/8238151096062576467/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=8238151096062576467" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8238151096062576467?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8238151096062576467?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/ZfIYnBL8Uts/linked-list-sorted-in-ascending-order.html" title="Linked list sorted in an ascending order" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/03/linked-list-sorted-in-ascending-order.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcDQXY-eCp7ImA9WxVRFUs.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-8507941213724296094</id><published>2009-01-21T18:34:00.014+01:00</published><updated>2009-01-21T20:27:50.850+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-21T20:27:50.850+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="c++" /><category scheme="http://www.blogger.com/atom/ns#" term="STL" /><title>Viterbi Algorithm in C++ and using STL</title><content type="html">To practice my C++ and STL skills, I implemented the Viterbi algorithm example from the Wikipedia page: &lt;a href="http://en.wikipedia.org/wiki/Viterbi_algorithm#A_concrete_example"&gt;http://en.wikipedia.org/wiki/Viterbi_algorithm&lt;/a&gt;. The original algorithm was implemented in Python. I reimplemented the example in C++ and I used STL (mainly &lt;span class="Apple-style-span" style="font-style: italic; "&gt;vector&lt;/span&gt; and &lt;span class="Apple-style-span" style="font-style: italic; "&gt;map&lt;/span&gt; classes).  This code is in public-domain. So, use it as you want. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The complete solution for MS Visual C++ 2008 can be found at &lt;a href="http://filip.jurcicek.googlepages.com/ViterbiSTL.rar"&gt;http://filip.jurcicek.googlepages.com/ViterbiSTL.rar&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// ViterbiSTL.cpp : is an C++ and STL implementatiton of the Wikipedia example&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// Wikipedia: http://en.wikipedia.org/wiki/Viterbi_algorithm#A_concrete_example&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// It as accurate implementation as it was possible&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#include "stdafx.h"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#include "string"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#include "vector"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#include "map"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;#include "iostream"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;using namespace std;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//states = ('Rainy', 'Sunny')&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//observations = ('walk', 'shop', 'clean')&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//start_probability = {'Rainy': 0.6, 'Sunny': 0.4}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//transition_probability = {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   'Rainy' : {'Rainy': 0.7, 'Sunny': 0.3},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   'Sunny' : {'Rainy': 0.4, 'Sunny': 0.6},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;// &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//emission_probability = {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   'Rainy' : {'walk': 0.1, 'shop': 0.4, 'clean': 0.5},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   'Sunny' : {'walk': 0.6, 'shop': 0.3, 'clean': 0.1},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//   }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;vector&lt;string&gt; states;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;vector&lt;string&gt; observations;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;map&lt;string,double&gt; start_probability;&lt;/string,double&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;map&lt;string,map&gt;&lt;string,&gt;&gt; transition_probability;&lt;/string,&gt;&lt;/string,map&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;map&lt;string,map&gt;&lt;string,&gt;&gt; emission_probability;&lt;/string,&gt;&lt;/string,map&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;class Tracking {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;public:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  double prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  vector&lt;string&gt; v_path;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  double v_prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  Tracking() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    prob = 0.0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    v_prob = 0.0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  Tracking(double p, vector&lt;string&gt; &amp;amp; v_pth, double v_p) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    prob = p;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    v_path = v_pth;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    v_prob = v_p;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;void init_variables(void) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  states.push_back("Rainy");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;states.push_back("Sunny");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  observations.push_back("walk");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  observations.push_back("shop");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  observations.push_back("clean");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  start_probability["Rainy"] = 0.6;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  start_probability["Sunny"] = 0.4;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  transition_probability["Rainy"]["Rainy"] = 0.7;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  transition_probability["Rainy"]["Sunny"] = 0.3;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  transition_probability["Sunny"]["Rainy"] = 0.4;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  transition_probability["Sunny"]["Sunny"] = 0.6;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Rainy"]["walk"] = 0.1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Rainy"]["shop"] = 0.4;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Rainy"]["clean"] = 0.5;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Sunny"]["walk"] = 0.6;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Sunny"]["shop"] = 0.3;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  emission_probability["Sunny"]["clean"] = 0.1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;void print_variables(void) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // print states&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "States:" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator i=states.begin();i!=states.end();i++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    cout &lt;&lt; "S: " &lt;&lt; (*i) &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // print observations&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Observations:" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator i=observations.begin();i!=observations.end();i++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    cout &lt;&lt; "O: " &lt;&lt; (*i) &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // print start probabilities&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Start probabilities:" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(map&lt;string,&gt;::iterator i=start_probability.begin();i!=start_probability.end();i++) {&lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    cout &lt;&lt; "S: " &lt;&lt; (*i).first &lt;&lt; " P: " &lt;&lt; (*i).second &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // print transition_probability&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Transition probabilities:" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(map&lt;string,map&gt;&lt;string,&gt;&gt;::iterator i=transition_probability.begin();i!=transition_probability.end();i++) {&lt;/string,&gt;&lt;/string,map&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    for(map&lt;string,&gt;::iterator j=(*i).second.begin();j!=(*i).second.end();j++) {&lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      cout &lt;&lt; "FS: " &lt;&lt; (*i).first &lt;&lt; " TS: " &lt;&lt; (*j).first &lt;&lt; " P: " &lt;&lt; (*j).second &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // print emission probabilities&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Emission probabilities:" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(int i=0; i&lt;states.size();&gt;&lt;/states.size();&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    for(int j=0; j&lt;observations.size();&gt;&lt;/observations.size();&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      cout &lt;&lt; "FS: " &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        " P: " &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//this method compute total probability for observation, most likely viterbi path &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;//and probability of such path&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;void forward_viterbi(vector&lt;string&gt; obs, vector&lt;string&gt; states, map&lt;string,&gt; start_p, &lt;/string,&gt;&lt;/string&gt;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                     map&lt;string,&gt;&gt; trans_p, &lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                     map&lt;string,&gt;&gt; emit_p) {&lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  map&lt;string,&gt; T;&lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator state=states.begin(); state!=states.end();state++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    vector&lt;string&gt; v_pth;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    v_pth.push_back(*state);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    T[*state] = Tracking(start_p[*state], v_pth, start_p[*state]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator output=obs.begin(); output!=obs.end();output++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    map&lt;string,&gt; U;&lt;/string,&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    for(vector&lt;string&gt;::iterator next_state=states.begin(); next_state!=states.end(); next_state++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      Tracking next_tracker;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      for(vector&lt;string&gt;::iterator source_state=states.begin(); source_state!=states.end(); source_state++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        Tracking source_tracker = T[*source_state];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        double p = emit_p[*source_state][*output]*trans_p[*source_state][*next_state];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        source_tracker.prob *= p;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        source_tracker.v_prob *= p;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        next_tracker.prob += source_tracker.prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        if(source_tracker.v_prob &gt; next_tracker.v_prob) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;          next_tracker.v_path = source_tracker.v_path;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;          next_tracker.v_path.push_back(*next_state);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;          next_tracker.v_prob = source_tracker.v_prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      U[*next_state] = next_tracker;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    T = U;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  // apply sum/max to the final states&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  Tracking final_tracker;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator state=states.begin(); state!=states.end(); state++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    Tracking tracker = T[*state];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    final_tracker.prob += tracker.prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    if(tracker.v_prob &gt; final_tracker.v_prob) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      final_tracker.v_path = tracker.v_path;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;      final_tracker.v_prob = tracker.v_prob;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Total probability of the observation sequence: " &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Probability of the Viterbi path: " &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "The Viterbi path: " &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  for(vector&lt;string&gt;::iterator state=final_tracker.v_path.begin(); state!=final_tracker.v_path.end(); state++) {&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;    cout &lt;&lt; "VState: " &lt;&lt; *state &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;int _tmain(int argc, _TCHAR* argv[])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cout &lt;&lt; "Viterbi STL example" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  init_variables();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  print_variables();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  forward_viterbi(observations, &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                  states, &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                  start_probability, &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                  transition_probability, &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;                  emission_probability);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;cout &lt;&lt; "End" &lt;&lt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  string end;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  cin &gt;&gt; end;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;  return 0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-8507941213724296094?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hpooJq6WZhwfILWTq6Tdi8SUzvI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hpooJq6WZhwfILWTq6Tdi8SUzvI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hpooJq6WZhwfILWTq6Tdi8SUzvI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hpooJq6WZhwfILWTq6Tdi8SUzvI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="enclosure" type="" href="http://en.wikipedia.org/wiki/Viterbi_algorithm" length="0" /><link rel="enclosure" type="RAR" href="http://filip.jurcicek.googlepages.com/ViterbiSTL.rar" length="0" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/8507941213724296094/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=8507941213724296094" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8507941213724296094?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/8507941213724296094?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/3d6wfAcfNPw/viterbi-algorithm-in-c-and-using-stl.html" title="Viterbi Algorithm in C++ and using STL" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>5</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2009/01/viterbi-algorithm-in-c-and-using-stl.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMDQXcyfip7ImA9WhRUF0U.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-5405925252895607424</id><published>2008-11-06T16:26:00.002+01:00</published><updated>2012-01-28T22:01:10.996+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-28T22:01:10.996+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="extra" /><title>BBC NEWS | Magazine | Three little words so hard to say</title><content type="html">&lt;div class="MsoNormal" style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-size: medium; line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;A very nice article about knowledge and the ability to admit that you don't know. I cite a piece of the text from the article about the work of politicians.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;  &lt;a href="http://news.bbc.co.uk/1/hi/magazine/7711221.stm" style="line-height: normal;"&gt;&lt;span style="color: blue; font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;BBC NEWS | Magazine | Three little words so hard to say&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana;"&gt;: "'I, in the early days, was trying to persuade a minister this was a really important public policy. He said, 'Do you know what? Repeat victimisation's got too many syllables. Can't you think of something with fewer syllables? Could we call it repeat offending?''"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: verdana; font-size: medium;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-5405925252895607424?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/K0zig7x5CShvLrgCp-Jr2pr8eAs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K0zig7x5CShvLrgCp-Jr2pr8eAs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/K0zig7x5CShvLrgCp-Jr2pr8eAs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K0zig7x5CShvLrgCp-Jr2pr8eAs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="related" href="http://news.bbc.co.uk/1/hi/magazine/7711221.stm" title="BBC NEWS | Magazine | Three little words so hard to say" /><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/5405925252895607424/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=5405925252895607424" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/5405925252895607424?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/5405925252895607424?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/1DNsW97pVMo/bbc-news-magazine-three-little-words-so.html" title="BBC NEWS | Magazine | Three little words so hard to say" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2008/11/bbc-news-magazine-three-little-words-so.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QMQn46eSp7ImA9WxVbFE8.&quot;"><id>tag:blogger.com,1999:blog-32050487.post-4326209917665816875</id><published>2008-03-21T09:32:00.001+01:00</published><updated>2009-03-30T17:03:03.011+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-30T17:03:03.011+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="extra" /><title>No Mas FARC - Praga</title><content type="html">Abych potpořil aktivity proti FARC v Kolumbii, tak jsem na YouTube nahral toto video. &lt;a href="http://youtube.com/bozskyfilip"&gt;http://youtube.com/bozskyfilip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Video bylo vytvořeno pro akci NO MAS FARC - PRAGA 4. 2. 2008&lt;br /&gt;&lt;br /&gt;Další informace o akci jsou na &lt;a href="http://www.colombiasoyyo.org/"&gt;http://www.colombiasoyyo.org/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32050487-4326209917665816875?l=bozskyfilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5PiZnU_9wpFXf1qbuqyO63-RCwo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PiZnU_9wpFXf1qbuqyO63-RCwo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5PiZnU_9wpFXf1qbuqyO63-RCwo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5PiZnU_9wpFXf1qbuqyO63-RCwo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel="replies" type="application/atom+xml" href="http://bozskyfilip.blogspot.com/feeds/4326209917665816875/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=32050487&amp;postID=4326209917665816875" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/4326209917665816875?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/32050487/posts/default/4326209917665816875?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/BoskFilip/~3/welBQLbdf0c/no-mas-farc-praga.html" title="No Mas FARC - Praga" /><author><name>Božský Filip</name><uri>http://www.blogger.com/profile/14336838304284341016</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://bozskyfilip.blogspot.com/2008/03/no-mas-farc-praga.html</feedburner:origLink></entry></feed>

