On Sat, Mar 28, 2009 at 05:35:59PM -0700, Mikhail Tadjikov wrote: > Thanks, but I'm trying to get weighted average specifically. I've looked at > the > code for moving_average... it's close to what I need, but its 1:1 in/out > ratio, > but I need N:1 ratio. That's the part I'm particular unclear about.
Since you're turning 1 vector into 1 output value, you could also use a gr_sync_block and prepend it with a gr_stream_to_vector. That automatically takes care of aligning etc.; if you use a sync_decimator you're not guaranteed to get N samples every time. This should pretty much be the simplest solution. Cheers MB -- Dipl.-Ing. Martin Braun Phone: +49-(0)721-608 3790 Institut fuer Nachrichtentechnik Fax: +49-(0)721-608 6071 Universitaet Karlsruhe (TH) http://www.int.uni-karlsruhe.de/
pgpP5rGjAtwDT.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio