<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body 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>
  </body>
</html>