22#ifndef INCLUDED_DAB_PEAK_DETECTOR_FB_H
23#define INCLUDED_DAB_PEAK_DETECTOR_FB_H
26#include <gnuradio/sync_block.h>
42 typedef std::shared_ptr<peak_detector_fb>
sptr;
65 static sptr make(
float threshold_factor_rise = 0.25,
66 float threshold_factor_fall = 0.40,
#define DAB_API
Definition api.h:19
Detect the peak of a signal.
Definition peak_detector_fb.h:40
virtual float threshold_factor_fall()=0
Get the threshold factor value for the fall time.
virtual float threshold_factor_rise()=0
Get the threshold factor value for the rise time.
static sptr make(float threshold_factor_rise=0.25, float threshold_factor_fall=0.40, int look_ahead=10, float alpha=0.001)
virtual float alpha()=0
Get the alpha value of the running average.
virtual void set_alpha(float alpha)=0
Set the running average alpha.
virtual int look_ahead()=0
Get the look-ahead factor value.
virtual void set_threshold_factor_fall(float thr)=0
Set the threshold factor value for the fall time.
std::shared_ptr< peak_detector_fb > sptr
Definition peak_detector_fb.h:42
virtual void set_threshold_factor_rise(float thr)=0
Set the threshold factor value for the rise time.
virtual void set_look_ahead(int look)=0
Set the look-ahead factor.
Definition complex_to_interleaved_float_vcf.h:28