23 #ifndef INCLUDED_GR_PEAK_DETECTOR2_FB_IMPL_H
24 #define INCLUDED_GR_PEAK_DETECTOR2_FB_IMPL_H
34 float d_threshold_factor_rise;
36 int d_look_ahead_remaining;
54 float alpha() {
return d_alpha; }
56 int work(
int noutput_items,
57 gr_vector_const_void_star &input_items,
58 gr_vector_void_star &output_items);
void set_look_ahead(int look)
Set the look-ahead factor.
Definition: peak_detector2_fb_impl.h:49
Detect the peak of a signalIf a peak is detected, this block outputs a 1, or it outputs 0's...
Definition: peak_detector2_fb.h:48
void set_alpha(int alpha)
Set the running average alpha.
Definition: peak_detector2_fb_impl.h:50
void set_threshold_factor_rise(float thr)
Set the threshold factor value for the rise time.
Definition: peak_detector2_fb_impl.h:48
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 ...
float threshold_factor_rise()
Get the threshold factor value for the rise time.
Definition: peak_detector2_fb_impl.h:52
float alpha()
Get the alpha value of the running average.
Definition: peak_detector2_fb_impl.h:54
~peak_detector2_fb_impl()
Definition: peak_detector2_fb_impl.h:31
int look_ahead()
Get the look-ahead factor value.
Definition: peak_detector2_fb_impl.h:53
peak_detector2_fb_impl(float threshold_factor_rise, int look_ahead, float alpha)