GNU Radio 3.6.5 C++ API
|
#include <peak_detector2_fb_impl.h>
Public Member Functions | |
peak_detector2_fb_impl (float threshold_factor_rise, int look_ahead, float alpha) | |
~peak_detector2_fb_impl () | |
void | set_threshold_factor_rise (float thr) |
Set the threshold factor value for the rise time. | |
void | set_look_ahead (int look) |
Set the look-ahead factor. | |
void | set_alpha (int alpha) |
Set the running average alpha. | |
float | threshold_factor_rise () |
Get the threshold factor value for the rise time. | |
int | look_ahead () |
Get the look-ahead factor value. | |
float | alpha () |
Get the alpha value of the running average. | |
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 |
gr::blocks::peak_detector2_fb_impl::peak_detector2_fb_impl | ( | float | threshold_factor_rise, |
int | look_ahead, | ||
float | alpha | ||
) |
gr::blocks::peak_detector2_fb_impl::~peak_detector2_fb_impl | ( | ) |
float gr::blocks::peak_detector2_fb_impl::alpha | ( | ) | [inline, virtual] |
Get the alpha value of the running average.
Implements gr::blocks::peak_detector2_fb.
Referenced by set_alpha().
int gr::blocks::peak_detector2_fb_impl::look_ahead | ( | ) | [inline, virtual] |
Get the look-ahead factor value.
Implements gr::blocks::peak_detector2_fb.
void gr::blocks::peak_detector2_fb_impl::set_alpha | ( | int | alpha | ) | [inline, virtual] |
Set the running average alpha.
alpha | new alpha for running average |
Implements gr::blocks::peak_detector2_fb.
References alpha().
void gr::blocks::peak_detector2_fb_impl::set_look_ahead | ( | int | look | ) | [inline, virtual] |
Set the look-ahead factor.
look | new look-ahead factor |
Implements gr::blocks::peak_detector2_fb.
void gr::blocks::peak_detector2_fb_impl::set_threshold_factor_rise | ( | float | thr | ) | [inline, virtual] |
Set the threshold factor value for the rise time.
thr | new threshold factor |
Implements gr::blocks::peak_detector2_fb.
float gr::blocks::peak_detector2_fb_impl::threshold_factor_rise | ( | ) | [inline, virtual] |
Get the threshold factor value for the rise time.
Implements gr::blocks::peak_detector2_fb.
int gr::blocks::peak_detector2_fb_impl::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.