discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Moving Average Block


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Moving Average Block
Date: Thu, 7 Jan 2016 20:20:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Hi Pedro,
the block does what one would expect from "moving average":
be x the input, y the output samples, N the length of the moving average

$y_n =
      \sum\limits_{i=n-N+1}^n x_n$, i.e. your second option.

This is a very valid question! I'd still like to point out that GNU Radio really lends itself to experimentation. A simple three block flow graph would have solved this mystery for yourself:


flowgraph

graphical sink


Best regards,
Marcus

On 07.01.2016 19:23, Pedro Gabriel Adami wrote:
Dear all,

The documentation of the Moving Average block made me feel confuse about its functionality. It says: "output is the moving sum of the last N samples". If I need a sum of 100 samples, this block will sum the 100 samples that I need and after that it will get another different samples? For example: 1+2+3+...+100 and 101+102+...200. Or it will do this: 1+2+...+100 and 2+3+...+101 and 3+4+...+102.

I know it seems a little confuse, but I didn't find a better way to explain this, sorry.

Thanks in advance.

--
Atenciosamente,
Pedro Gabriel Adami
Graduando do 5º período de Engenharia de Controle e Automação no Instituto Nacional de Telecomunicações - Inatel


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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