23 #ifndef INCLUDED_gr_peak_detector2_FB_H
24 #define INCLUDED_gr_peak_detector2_FB_H
61 float d_threshold_factor_rise;
63 int d_look_ahead_remaining;
102 int work (
int noutput_items,
103 gr_vector_const_void_star &input_items,
104 gr_vector_void_star &output_items);
void set_threshold_factor_rise(float thr)
Set the threshold factor value for the rise time.
Definition: gr_peak_detector2_fb.h:75
Definition: gr_sync_block.h:27
float alpha()
Get the alpha value of the running average.
Definition: gr_peak_detector2_fb.h:100
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
int look_ahead()
Get the look-ahead factor value.
Definition: gr_peak_detector2_fb.h:95
#define GR_CORE_API
Definition: gr_core_api.h:30
void set_alpha(int alpha)
Set the running average alpha.
Definition: gr_peak_detector2_fb.h:85
void set_look_ahead(int look)
Set the look-ahead factor.
Definition: gr_peak_detector2_fb.h:80
GR_CORE_API gr_peak_detector2_fb_sptr gr_make_peak_detector2_fb(float threshold_factor_rise=7, int look_ahead=1000, float alpha=0.001)
float threshold_factor_rise()
Get the threshold factor value for the rise time.
Definition: gr_peak_detector2_fb.h:90
virtual int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
just like gr_block::general_work, only this arranges to call consume_each for you ...
Detect the peak of a signalIf a peak is detected, this block outputs a 1, or it outputs 0's...
Definition: gr_peak_detector2_fb.h:53