<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Monte Carlo on Blog of Christian Felde</title><link>https://blog.cfelde.com/tags/monte-carlo/</link><description>Recent content in Monte Carlo on Blog of Christian Felde</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 07 Mar 2015 18:43:08 +0000</lastBuildDate><atom:link href="https://blog.cfelde.com/tags/monte-carlo/index.xml" rel="self" type="application/rss+xml"/><item><title>Playing with Clojure and sampling algos</title><link>https://blog.cfelde.com/2015/03/playing-with-clojure-and-sampling-algos/</link><pubDate>Sat, 07 Mar 2015 18:43:08 +0000</pubDate><guid>https://blog.cfelde.com/2015/03/playing-with-clojure-and-sampling-algos/</guid><description>&lt;p&gt;Over the last few months I’ve been learning Clojure. Best way to learn I find is to use what you learn for something you find useful or interesting. This morning, while browsing &lt;a href="https://news.ycombinator.com/"&gt;Hacker News&lt;/a&gt;, I found myself reading about &lt;a href="https://www.omniref.com/ruby/gems/stream_sampler/0.0.1/symbols/StreamSampler"&gt;Vitter’s reservoir sampling algorithm&lt;/a&gt;, with an example developed in Ruby.&lt;/p&gt;
&lt;p&gt;After spending a little bit of time thinking over the reasoning for why this algo would work as claimed, I decided to give it a quick spin in Clojure. I’ve &lt;a href="https://github.com/cfelde/VitterReservoirSampling"&gt;published my experiment on GitHub&lt;/a&gt; if you’re interested in a different take on the algo implementation, with some &lt;a href="http://incanter.org/"&gt;Incanter&lt;/a&gt; inspired visual confirmation of it’s claim.&lt;/p&gt;</description></item></channel></rss>