<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>David Owen’s blog</title>
    <link>https://blog.fugue88.ws/</link>
    <description>Forward motion</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:dsowen@fugue88.ws" />
    <generator>Serendipity 2.1.4 - http://www.s9y.org/</generator>
    <pubDate>Wed, 27 Nov 2024 04:31:27 GMT</pubDate>

    <image>
    <url>https://blog.fugue88.ws/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: David Owen’s blog - Forward motion</title>
    <link>https://blog.fugue88.ws/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>PCA for Classification Is as Bad as Random</title>
    <link>https://blog.fugue88.ws/archives/2024-11/PCA-for-Classification-Is-as-Bad-as-Random</link>
    
    <comments>https://blog.fugue88.ws/archives/2024-11/PCA-for-Classification-Is-as-Bad-as-Random#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=66</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Basically, PCA (Principle Component Analysis) finds projection axes based on total population variance. Because that is not correlated with classes, that means that adding PCA into your classification pipeline is essentially adding a random variable. Or, more exactly, it&#039;s like using a set of random, orthogonal projection axes.&lt;/p&gt;
&lt;p&gt;Here&#039;s a simple example of PCA making classification harder&amp;hellip;&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2024-11/PCA-for-Classification-Is-as-Bad-as-Random#extended&quot;&gt;Continue reading &quot;PCA for Classification Is as Bad as Random&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 27 Nov 2024 04:10:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2024-11/66</guid>
    
</item>
<item>
    <title>In-order responses for asynchronous work</title>
    <link>https://blog.fugue88.ws/archives/2023-02/In-order-responses-for-asynchronous-work</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2023-02/In-order-responses-for-asynchronous-work#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=65</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=65</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Sometimes we end up executing some asynchronous function several times in a row, but we need only the results of the last call. The difficulty is that some earlier invocations may finish after the latest. I encounter this most often in Javascript, when I call an API in response to ongoing user input, like for looking up an address. While debouncing can help reduce this problem (and should be done anyway to lighten the load), it does not eliminate the problem.&lt;/p&gt;
&lt;p&gt;A simple way to do this is to use a counter to keep track of each request, and only process a response if it&#039;s newer than any other processed so far.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2023-02/In-order-responses-for-asynchronous-work#extended&quot;&gt;Continue reading &quot;In-order responses for asynchronous work&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 08 Feb 2023 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2023-02/65</guid>
    
</item>
<item>
    <title>Pipelines in Lisp</title>
    <link>https://blog.fugue88.ws/archives/2022-03/Pipelines-in-Lisp</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2022-03/Pipelines-in-Lisp#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=64</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>

    <pubDate>Mon, 07 Mar 2022 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2022-03/64</guid>
    
</item>
<item>
    <title>Better averages for online machine-learning</title>
    <link>https://blog.fugue88.ws/archives/2022-03/Better-averages-for-online-machine-learning</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2022-03/Better-averages-for-online-machine-learning#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=63</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=63</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Averages are used, in some form or other, and many machine-learning algorithms.  Stochastic gradient descent is a great example of an average in disguise, thin though it may be.&lt;/p&gt;

&lt;p&gt;Picking the right kind of average can be critical.  As learning algorithms explore sub-optimal choices, the resulting negative impact on backed-up state values can persist over epochs, hampering performance.  Alternatively, some kinds of average don&#039;t converge, preventing the algorithm from settling into optimal outcomes.&lt;/p&gt;

&lt;p&gt;Here, I officially release a paper on a particular kind of average that&#039;s adaptable like an exponential moving average, but has guaranteed convergence like a simple average.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2022-03/Better-averages-for-online-machine-learning#extended&quot;&gt;Continue reading &quot;Better averages for online machine-learning&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 04 Mar 2022 20:42:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2022-03/63</guid>
    
</item>
<item>
    <title>Action-selection and learning-rates in Q-learning</title>
    <link>https://blog.fugue88.ws/archives/2021-04/Action-selection-and-learning-rates-in-Q-learning</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2021-04/Action-selection-and-learning-rates-in-Q-learning#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=62</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=62</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Implementing a Q-table reinforcement-learner is in many ways simple and straight-forward and also somewhat tricky.  The basic concept is easy to grasp; but, as many have mentioned, reinforcement-learners almost &lt;em&gt;want&lt;/em&gt; to work, despite whatever bugs or sub-optimal math might be in the implementation.&lt;/p&gt;
&lt;p&gt;Here are some quick notes about the approach I&#039;ve come to use, specifically about action-selection (e.g. epsilon-greedy versus UCB) and managing learning-rates.  They&#039;ve helped my learners converge to good strategies faster and more reliably.  Hopefully they can help you, too!&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2021-04/Action-selection-and-learning-rates-in-Q-learning#extended&quot;&gt;Continue reading &quot;Action-selection and learning-rates in Q-learning&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 13 Apr 2021 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2021-04/62</guid>
    
</item>
<item>
    <title>Simulating deck-shuffling</title>
    <link>https://blog.fugue88.ws/archives/2020-12/Simulating-deck-shuffling</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2020-12/Simulating-deck-shuffling#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=61</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=61</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;I recently worked on a small project simulating random events that were far too numerous to enumerate. In such cases, every bit of speed matters.&lt;/p&gt;
&lt;p&gt;The project in this case was similar to determining likelihood of five-card Poker hands in seven-card draws.&lt;/p&gt;
&lt;p&gt;Simulation of shuffling the deck and drawing cards can take a large part of the runtime if not done well, but there&#039;s a trick that makes it almost trivial.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2020-12/Simulating-deck-shuffling#extended&quot;&gt;Continue reading &quot;Simulating deck-shuffling&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 30 Dec 2020 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2020-12/61</guid>
    
</item>
<item>
    <title>Exact random sums</title>
    <link>https://blog.fugue88.ws/archives/2020-06/Exact-random-sums</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2020-06/Exact-random-sums#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=60</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Sometimes, you need a list of random numbers that sum to a known constant. There&#039;s a known algorithm to provide this list of numbers with the proper distribution, but a straight-forward implementation may give a list that doesn&#039;t sum exactly to the desired constant because of rounding error.&lt;/p&gt;
&lt;p&gt;This article describes the basic algorithm, why the rounding error happens, and the solution.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2020-06/Exact-random-sums#extended&quot;&gt;Continue reading &quot;Exact random sums&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 16 Jun 2020 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2020-06/60</guid>
    
</item>
<item>
    <title>Precision of random numbers</title>
    <link>https://blog.fugue88.ws/archives/2020-06/Precision-of-random-numbers</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2020-06/Precision-of-random-numbers#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=59</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;In some sense, random numbers uniformly-distributed in the range \([0, 1)\) are the easiest class of random number to generate.&lt;/p&gt;
&lt;p&gt;Because of the internal representation of floating-point numbers, all you need to do is fill the significand with random bits, set the exponent to -1, and the sign bit to positive.&lt;/p&gt;
&lt;p&gt;Some language run-times do this better than others.&lt;/p&gt;
&lt;p&gt;This article shows how to check your run-time, and how to fix it.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2020-06/Precision-of-random-numbers#extended&quot;&gt;Continue reading &quot;Precision of random numbers&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 02 Jun 2020 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2020-06/59</guid>
    
</item>
<item>
    <title>certbot and tinydns</title>
    <link>https://blog.fugue88.ws/archives/2019-03/certbot-and-tinydns</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2019-03/certbot-and-tinydns#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=58</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=58</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;Let&#039;s Encrypt now supports wildcard certificates. To confirm DNS control,
they support several different DNS providers and dynamic DNS protocols, but
they don&#039;t yet have a plugin for tinydns by DJ Bernstein.&lt;/p&gt;
&lt;p&gt;Luckily, the excellent designs of both certbot and tinydns make it very easy
to support on your own.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2019-03/certbot-and-tinydns#extended&quot;&gt;Continue reading &quot;certbot and tinydns&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 12 Mar 2019 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2019-03/58</guid>
    
</item>
<item>
    <title>von Neumann's 4-player {1/3, 1/3, -1/3, -1/3} imputation</title>
    <link>https://blog.fugue88.ws/archives/2017-09/von-Neumanns-4-player-13,-13,-13,-13-imputation</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-09/von-Neumanns-4-player-13,-13,-13,-13-imputation#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=57</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=57</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;In &lt;a href=&quot;https://archive.org/details/theoryofgamesand030098mbp&quot;&gt;Theory of Games and Economic Behavior&lt;/a&gt;, von Neumann discusses solutions to some kinds of zero-sum four-person games. See section 37.4.2, page 317. There, he finds that one set of imputations is incomplete, and must have at least another imputation added to it. He writes that &lt;q&gt;[it] seems very difficult to find a heuristic motivation for the steps which are now necessary&lt;/q&gt; before giving the imputation as:&lt;/p&gt;

\begin{equation} \vec a^{IV} = \left\{1/3, 1/3, -1/3, -1/3\right\} \end{equation}

&lt;p&gt;The situation is unusual in that the first three players have formed a coalition against the fourth. So, why does the third player have the same loss as the fourth? This is the heuristic that von Neumann didn&amp;rsquo;t provide, and he concludes by saying only that &lt;q&gt;[if] a common-sense interpretation of this solution&amp;hellip; is wanted, &amp;hellip; it seems to be some kind of compromise between a part (two members) of a possible victorious coalition and the other two players.&lt;/q&gt;&lt;/p&gt;

&lt;p&gt;However, there&amp;rsquo;s an intriguing possibility.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-09/von-Neumanns-4-player-13,-13,-13,-13-imputation#extended&quot;&gt;Continue reading &quot;von Neumann&#039;s 4-player {1/3, 1/3, -1/3, -1/3} imputation&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 22 Sep 2017 01:23:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-09/57</guid>
    
</item>
<item>
    <title>Exponential Moving Average (EMA) Rates, part 3</title>
    <link>https://blog.fugue88.ws/archives/2017-04/Exponential-Moving-Average-EMA-Rates,-part-3</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-04/Exponential-Moving-Average-EMA-Rates,-part-3#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=55</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=55</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;In the last post, we created an online implementation of an EMA to measure the rate of a Poisson event. However, it has the &amp;ldquo;warm-up&amp;rdquo; period seen in most EMA implementations.&lt;/p&gt;
&lt;p&gt;This time, we&amp;rsquo;ll correct that. The technique is similar to what I wrote in &lt;a href=&quot;https://blog.fugue88.ws/archives/2017-01/The-correct-way-to-start-an-Exponential-Moving-Average-EMA&quot;&gt;The correct way to start an Exponential Moving Average (EMA)&lt;/a&gt;.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-04/Exponential-Moving-Average-EMA-Rates,-part-3#extended&quot;&gt;Continue reading &quot;Exponential Moving Average (EMA) Rates, part 3&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 11 Apr 2017 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-04/55</guid>
    
</item>
<item>
    <title>Exponential Moving Average (EMA) Rates, part 2</title>
    <link>https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-2</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-2#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;In the &lt;a href=&quot;https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-1&quot;&gt;last post&lt;/a&gt;, we simulated some Poisson data and then verified it by looking at its histogram and some descriptive statistics. We also built a basic sliding-window implementation and graphed its output.&lt;/p&gt;
&lt;p&gt;To continue on, we&amp;rsquo;ll need to build a more realistic implementation, along with a method to feed it the simulated events. With that in hand, we&amp;rsquo;ll build an EMA function specialized for Poisson events.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-2#extended&quot;&gt;Continue reading &quot;Exponential Moving Average (EMA) Rates, part 2&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 28 Mar 2017 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-03/54</guid>
    
</item>
<item>
    <title>Exponential Moving Average (EMA) Rates, part 1</title>
    <link>https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-1</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-1#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=53</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=53</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;I had been thinking about determining the average rate of occurrences over time of some observation. For example, you might like to measure how much traffic flows through a street throughout the day. Reporting the time that every single car goes by is very accurate, but not very useful. You might bin traffic into hours starting on every hour, but if there is a spike or sudden increase in the middle of an hour you might miss its significance. So, you&#039;d like to see a graph that&#039;s smooth like an average but with more detail in time.&lt;/p&gt;
&lt;p&gt;One approach is similar to the binning approach, but slide the hour-long window across the data by minutes. Doing this requires keeping the data around, and using each data point repeatedly. If you have a surge of one million cars in a few minutes, you need to use those million points in your calculations 60 times.&lt;/p&gt;
&lt;p&gt;This behavior is similar to the Simple Moving Average (SMA). A SMA can easily be transformed into an Exponential Moving Average, which requires only the previous EMA and the new data point to calculate the new EMA. So, I decided to create an Exponential Moving Average Rate (EMAR).&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-03/Exponential-Moving-Average-EMA-Rates,-part-1#extended&quot;&gt;Continue reading &quot;Exponential Moving Average (EMA) Rates, part 1&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 14 Mar 2017 13:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-03/53</guid>
    
</item>
<item>
    <title>The correct way to start an Exponential Moving Average (EMA)</title>
    <link>https://blog.fugue88.ws/archives/2017-01/The-correct-way-to-start-an-Exponential-Moving-Average-EMA</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-01/The-correct-way-to-start-an-Exponential-Moving-Average-EMA#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=52</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=52</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;The EMA is a very handy tool. It lets us calculate an average over recent data. But, unlike a Simple Moving Average, we don&#039;t have to keep a window of samples around&amp;mdash;we can update an EMA &quot;online,&quot; one sample at a time.&lt;/p&gt;
&lt;p&gt;But the perennial question is: how do you &lt;i&gt;start&lt;/i&gt; an EMA?&lt;/p&gt;
&lt;p&gt;First, here are a couple of wrong ways.&lt;/p&gt; &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-01/The-correct-way-to-start-an-Exponential-Moving-Average-EMA#extended&quot;&gt;Continue reading &quot;The correct way to start an Exponential Moving Average (EMA)&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 31 Jan 2017 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-01/52</guid>
    
</item>
<item>
    <title>Deciding once</title>
    <link>https://blog.fugue88.ws/archives/2017-01/Deciding-once</link>
            <category>Software engineering</category>
    
    <comments>https://blog.fugue88.ws/archives/2017-01/Deciding-once#comments</comments>
    <wfw:comment>https://blog.fugue88.ws/wfwcomment.php?cid=51</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.fugue88.ws/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    

    <author>dsowen@fugue88.ws (David Owen)</author>
    <content:encoded>
    &lt;p&gt;In &lt;a href=&quot;https://blog.fugue88.ws/archives/2017-01/Fixing-dispatch&quot;&gt;Fixing dispatch&lt;/a&gt;, we refactored some code that dispatched things from a &lt;code&gt;switch&lt;/code&gt;-statement or cascading &lt;code&gt;if&lt;/code&gt;-statements to dispatching by polymorphism.&lt;/p&gt;

&lt;p&gt;This time, we&#039;ll refactor a different piece of dispatch in a completely different way, and cover another design principle.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;https://blog.fugue88.ws/archives/2017-01/Deciding-once#extended&quot;&gt;Continue reading &quot;Deciding once&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 24 Jan 2017 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://blog.fugue88.ws/archives/2017-01/51</guid>
    
</item>

</channel>
</rss>
