Forum: GNU Radio mean value block

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
konvak (Guest)
on 2007-05-03 12:07
(Received via mailing list)
hi all,
          I would be interested in getting and displaying some
statistical information (mean, variance...) about received signal (let's
say for educational purposes to try to determine what kind of modulation
I am receiving). Is there any way to get let's say the mean value of the
signal without writing a new block. The only thing I came across is
gr.probe_signal_f() to get the value of the signal. Is it possible to
get _every_ sample with this, somehow I don't think it would work. So do
I really need a new block?

thanks for any suggestions and help,
Trond D. (Guest)
on 2007-05-03 12:32
(Received via mailing list)
2007/5/3, konvak <removed_email_address@domain.invalid>:
> thanks for any suggestions and help,
> tomas

I have attached a patch that adds a gr_mean_XX block to gnuradio-core.
The block calculates the arithmetic mean of a single vector. The
variance block should be quite easy to create using this one as a
template. I have not added the various bits and pieces to
etc, but that should (in theory... :) ) not be too hard.

Eric B. (Guest)
on 2007-05-03 17:58
(Received via mailing list)
On Thu, May 03, 2007 at 10:05:43AM +0200, konvak wrote:
> thanks for any suggestions and help,
> tomas

The mean value of the signal over what period of time?

You can get an approximation using the existing gr.single_pole_iir

This topic is locked and can not be replied to.