Andreas Stemmer wrote: > It's also not necessary to calculate the sum which each update. Instead, > save the old sum and just remove the oldest element and add the new element > with each update. Just an additional note: this works fine with integers - with floats however, this could lead to numerical problems... I don't know how much they matter in reality. Andreas
Message
Re: [AVR-Chat] Moving average filter
2009-07-17 by Andreas Stemmer