|
From: | Pedro Gabriel Adami |
Subject: | Re: [Discuss-gnuradio] Moving Average Block |
Date: | Tue, 12 Jan 2016 14:27:50 -0200 |
Whoops, just noticed I didn't reply to all when I answered so my message and Pedro's response were not forwarded to the mailing list :Le jeu. 7 janv. 2016 à 20:28, Pedro Gabriel Adami <address@hidden> a écrit :Dear, Timothée,
Thank you so much. I am doing some tests and I've realized that the results are a little strange. That is why I asked.
Let me ask you one more thing: Do you know some block that is capable to retain N samples, so I can use them and after that, it retains the next N samples? Like a variable where I can "save" the information for a short period of time, but my Gnuradio does not have a "variable sink".
Thanks in advance.
Em 07/01/2016 17:18, "Timothée COCAULT" <address@hidden> escreveu:Hi Pedro,When you're not sure, the best solution is often to look at the code.If you look at the work function in gr-blocks/lib/moving_average_XX_impl.cc.t, you see that the block first sums the history (of length 100 in your case).For each additional input items, it adds the new item and subtracts the n-100 item, and outputs the current sum.So it will first calculate 1+...+100, then 2+...+101 and so on.Regards,Timothée.I don't understand exactly your question but you can use a stream to vector to group your items in packets of size N, and plug it into a probe signal
formula2.jpg
Description: JPEG image
gnuradio2.jpg
Description: JPEG image
[Prev in Thread] | Current Thread | [Next in Thread] |