<div dir="ltr">Pete,<div><br></div><div>I did some work once with an 'unbiased standard deviation' which may be able to solve some of your issues. I implemented this in an Arduino ultrasonic library I wrote some years ago at <a href="http://wiki.tetrasys-design.net/HCSR04Ultrasonic">http://wiki.tetrasys-design.net/HCSR04Ultrasonic</a>. You could pull my code apart and take out the standard deviation stuff. This code is written in C++ and uses classes.</div><div><br></div><div>~Carl</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 24, 2015 at 5:49 PM, Pete Soper via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></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">
    <div style="font-family:'Calibri','sans-serif'">Say I have a
      sensor for which a measured baseline signal can be used as a
      steady state but some predefined deviation greater than a given
      amount can can be defined "interesting" by virtue of an interrupt.
      With the interrupt can come a sequence of samples (either polled
      or by reusing the same or different deviation for an interrupt)
      before the sensor reading changes are declared ended, returning to
      the old or a new normal baseline level, and the process is set up
      to be repeated. Meanwhile, between interrupts and sample capturing
      tasks, a set of samples is compared with previously defined
      "signatures" to confirm that a set of samples is "complete" and a
      <something> has or has not been detected. I realize that in
      many cases there has to be a "moving window" to do with matching
      up samples and signatures: I'm just <br>
      <div><br>
      </div>
      <div>I'm looking for the math taxonomy to do with this for making
        filters and pattern matchers, but also practical examples that
        express specific calculations for use cases.<br>
      </div>
      <div><br>
      </div>
      <div>Example: A photodetector w a programmable comparator that
        triggers an mcu interrupt when a light level is above or below
        threshold, and arrangements for detecting these "signatures":</div>
      <div> . The moon obscured momentarily by a cloud</div>
      <div> . A passing car's headlights</div>
      <div> . Dawn</div>
      <div> . A cigarette lighter lighting a cigarette</div>
      <div> . A cigarette lighter used in "music concert style"</div>
      <div> . Lightning</div>
      <div><br>
        I guess the ideal would be a few Wikipedia references to help me
        begin my education, but some practical examples that allow
        correlating the math with code that implements the math would be
        much appreciated.<br>
        <br>
        Thanks,<br>
      </div>
      <div>Pete</div>
      <div><br>
      </div>
    </div>
    <br>
    <br>
  </div>

<br>_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-------------------------------------------------------------------------------<br>Carl J. Nobile (Software Engineer)<br><a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</a><br>-------------------------------------------------------------------------------</div>
</div>