Max amplitude detector

Is there a function that simply looks at a steam of data and returns the
maximum value for amplitude within a certain number of samples? I
looked at gr_peak_detector, but it expects the peak parameters and
returns true or false, not exactly what i need.

Is there a function that simply looks at a steam of data and returns the
maximum value for amplitude within a certain number of samples? I
looked at gr_peak_detector, but it expects the peak parameters and
returns true or false, not exactly what i need.

This should be fairly easy to implement using the ‘history’ array in
the write-a-block framework.

Check out
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html
I’m not sure it’s fully update for gr3.2, but you can easily just
modify the source of gr_peak_detector or one of the correlator blocks
to find the max within the last N samples.

Jason