<p>Well, understanding the math of a Kalman filter was way beyond my pay grade, but based on the description in <a href="http://bilgin.esme.org/BitsBytes/KalmanFilterforDummies.aspx">http://bilgin.esme.org/BitsBytes/KalmanFilterforDummies.aspx</a>, a 1d implementation reduces the complexity considerably. According to this guide, we can assume simple float values for most of the coefficients for most purposes.</p>

<p>Based on your suggestion, I think I will incorporate an &quot;analyze mode&quot; into the external itself to calculate the noise parameters and set them automatically. I&#39;ll let you know when that&#39;s in git.</p>

<p>Joel</p>
<div class="gmail_quote">On Feb 28, 2013 5:05 PM, &quot;Charles Z Henry&quot; &lt;<a href="mailto:czhenry@gmail.com" target="_blank">czhenry@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div>Hey Joel<br><br></div>I was very interested to see your implementation.  It&#39;s drastically simpler than I thought it would be.  Well, you did mention it was simple :)  However, I thought the math was pretty expensive to do and complex to program.<br>


<br></div>I like the approach generally--you have parameters for the assumed noise model and methods to set them (better than trying to build a monolith that does both the measurement and filtering).  Do you have another patch or abstraction to analyze the sensor data and calculate those parameters?  If so, you should add it to git.<br>


<br></div>Chuck<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 12:47 PM, Joel Matthys <span dir="ltr">&lt;<a href="mailto:jwmatthys@gmail.com" target="_blank">jwmatthys@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <font face="Ubuntu">I just completed a very simple 1D Kalman filter
      Pd external. I haven&#39;t really done any documentation on it, but it
      seems pretty robust for cleaning up 1D sensor inputs.<br>
      <br>
      The source is here:<br>
    </font><br>
    <a href="https://github.com/jwmatthys/kalman-pd" target="_blank">https://github.com/jwmatthys/kalman-pd</a><span><font color="#888888"><br>
    <br>
    <font face="Ubuntu">Joel</font><br>
  </font></span></div>

<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div>