discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Please help building a signal processing block.


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Please help building a signal processing block.
Date: Mon, 30 Mar 2009 23:56:26 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Mar 30, 2009 at 09:17:18AM +0200, Martin Braun wrote:
> 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.

Actually, with a sync decimator, you'll get a multiple of N input samples
every time.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]