11#ifndef PEAK_DETECTOR_H
12#define PEAK_DETECTOR_H
33 typedef std::shared_ptr<peak_detector<T>>
sptr;
Detect the peak of a signal.
Definition peak_detector.h:31
std::shared_ptr< peak_detector< T > > sptr
Definition peak_detector.h:33
virtual float threshold_factor_rise()=0
virtual void set_look_ahead(int look)=0
Set the look-ahead factor.
virtual void set_threshold_factor_fall(float thr)=0
Set the threshold factor value for the fall 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 void set_alpha(float alpha)=0
Set the running average alpha.
virtual int look_ahead()=0
virtual float threshold_factor_fall()=0
virtual void set_threshold_factor_rise(float thr)=0
Set the threshold factor value for the rise time.
sync_block(void)
Definition sync_block.h:28
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
peak_detector< std::int32_t > peak_detector_ib
Definition peak_detector.h:103
peak_detector< std::int16_t > peak_detector_sb
Definition peak_detector.h:104
peak_detector< float > peak_detector_fb
Definition peak_detector.h:102
GNU Radio logging wrapper.
Definition basic_block.h:29