Forum: GNU Radio alpha and look ahead value in gr_peak_detector_xb_0

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.
85ffd97bae0e78056e1d06312744d7d1?d=identicon&s=25 Markus Feldmann (Guest)
on 2009-05-08 00:27
(Received via mailing list)
Hi All,

i want to build an application including a peak detector, therefore
i am using the <gr_peak_detector_xb_0> which has a TH Factor Rise and
TH Factor Fall to detect a peak. It also has a alpha and a look ahead

As far as i understand, if the Threshold finds a possible peak
it searchs if the peak goes further above. It searchs so many times
as the look ahead value consists. If the look ahead value is 10, then
he looks 10 times further. The search will only be stopped if the
TH Factor Fall occurs or it reach the 10th value. If the TH Factor Rise
occurs it calculates an average value according to the EWMA principle.
Therefore we need alpha. A higher alpha value let the average value
moving faster down and backwards, a lower alpha value --> moving the
average value slower down. Th formula for the alpha i know is
alpha = 2/(N+1)
whereby we know alpha and want to know N, so
N = 2/alpha - 1

So a higher alpha value produces more peaks.

I setted up my <gr_peak_detector_xb_0>, but it seems
not to work correct. it reacts on every signal even
I changed the TH Factor Rise to 10e15 but he still produces

Is this a Bug or what ?
Is my understanding on the Peakdetector correct ?

I added my grc file in the hope somebody can tell me more.

regards Markus
This topic is locked and can not be replied to.