11 #ifndef PEAK_DETECTOR_H 12 #define PEAK_DETECTOR_H 33 typedef std::shared_ptr<peak_detector<T>>
sptr;
56 static sptr make(
float threshold_factor_rise = 0.25,
57 float threshold_factor_fall = 0.40,
64 virtual void set_threshold_factor_rise(
float thr) = 0;
69 virtual void set_threshold_factor_fall(
float thr) = 0;
74 virtual void set_look_ahead(
int look) = 0;
79 virtual void set_alpha(
float alpha) = 0;
84 virtual float threshold_factor_rise() = 0;
89 virtual float threshold_factor_fall() = 0;
94 virtual int look_ahead() = 0;
99 virtual float alpha() = 0;
peak_detector< std::int16_t > peak_detector_sb
Definition: peak_detector.h:104
GNU Radio logging wrapper.
Definition: basic_block.h:29
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:25
Detect the peak of a signal.
Definition: peak_detector.h:30
std::shared_ptr< peak_detector< T > > sptr
Definition: peak_detector.h:33
peak_detector< float > peak_detector_fb
Definition: peak_detector.h:102
peak_detector< std::int32_t > peak_detector_ib
Definition: peak_detector.h:103