Buffering Sensor Data


http://delphi.org/2014/01/buffering-sensor-data/

Comments

  1. Why not a rolling average? Constant in time and space.

    ReplyDelete
  2. A rolling average would work too, and would probably have similar results, wouldn't it?

    ReplyDelete
  3. Yes should.

    In fact, since you just want to average the last N samples, you can just keep an accumulator and divide by N once you want the mean. This would just cost two adds per sample (accumulator and counter) and one divide when reading. Should be the most efficient. No need for a list or anything.

    ReplyDelete
  4. Does anybody remember the time, when users also write a little bit more text then just throw out a simple link ?

    ReplyDelete
  5. Thomas Lodewick follow the link and you will get a bunch of text to read!

    ReplyDelete
  6. +Thomas Lodewick I didn't want to repeat myself.

    ReplyDelete
  7. Oh, ok .... this is a uncommended linklist ... I dind't knew that.

    ReplyDelete
  8. I see that the post didn't have a summary now. Next time I'll try to include one.

    ReplyDelete

Post a Comment