|
From: | Timothée COCAULT |
Subject: | Re: [Discuss-gnuradio] Moving Average Block |
Date: | Fri, 8 Jan 2016 17:47:22 +0100 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |