|
GNU Radio 3.6.4.1 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 | |
Additional Inherited Members | |
Public Types inherited from gr::blocks::peak_detector2_fb | |
| typedef boost::shared_ptr < peak_detector2_fb > | sptr |
Static Public Member Functions inherited from gr::blocks::peak_detector2_fb | |
| static sptr | make (float threshold_factor_rise=7, int look_ahead=1000, float alpha=0.001) |
Protected Types inherited from gr_basic_block | |
| enum | vcolor { WHITE, GREY, BLACK } |
Protected Member Functions inherited from gr_sync_block | |
| gr_sync_block (void) | |
| gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature) | |
Protected Attributes inherited from gr_block | |
| std::vector< long > | d_max_output_buffer |
| std::vector< long > | d_min_output_buffer |
| gruel::mutex | d_setlock |
| 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 | ( | ) |
|
inlinevirtual |
Get the alpha value of the running average.
Implements gr::blocks::peak_detector2_fb.
Referenced by set_alpha().
|
inlinevirtual |
|
inlinevirtual |
Set the running average alpha.
| alpha | new alpha for running average |
Implements gr::blocks::peak_detector2_fb.
References alpha().
|
inlinevirtual |
Set the look-ahead factor.
| look | new look-ahead factor |
Implements gr::blocks::peak_detector2_fb.
|
inlinevirtual |
Set the threshold factor value for the rise time.
| thr | new threshold factor |
Implements gr::blocks::peak_detector2_fb.
|
inlinevirtual |
Get the threshold factor value for the rise time.
Implements gr::blocks::peak_detector2_fb.
|
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.