I do a rolling rms the same way I do a rolling avg...?I have an array of n samples, and a total. I subtract the sample at the current index from the total, add in the new sample, so now I have a new total with only two adds instead of n. I can get a new avg with a shift if n is 32 or 64 etc. To do the rms, you keep the sample squared in the array. Obviously this requires a multiply. Take the mean with a shift, same as with the avg, then take the sqrt.? -----Original Message----- From: David VanHorn <microbrix@gmail.com> To: AVR-Chat@yahoogroups.com Sent: Fri, 16 Jan 2009 9:43 am Subject: Re: [AVR-Chat] GMM On Thu, Jan 15, 2009 at 9:58 PM, <BobGardner@aol.com> wrote: > RMS is the power level of the signal, so I guess peak to RMS is standard deviation. The formulas look similar to me, deal with the square of the signal. Ok, but having RMS and peak, how would you calculate it again on a new sample, with only the previous RMS and peak to work from. Peak is easy.. ------------------------------------ Yahoo! Groups Links [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] GMM
2009-01-17 by BobGardner@aol.com
Attachments
- No local attachments were found for this message.