GNU Radio 3.6.4.1 C++ API
gr::blocks::peak_detector2_fb_impl Class Reference

#include <peak_detector2_fb_impl.h>

Inheritance diagram for gr::blocks::peak_detector2_fb_impl:
gr::blocks::peak_detector2_fb gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

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. More...
 
void set_look_ahead (int look)
 Set the look-ahead factor. More...
 
void set_alpha (int alpha)
 Set the running average alpha. More...
 
float threshold_factor_rise ()
 Get the threshold factor value for the rise time. More...
 
int look_ahead ()
 Get the look-ahead factor value. More...
 
float alpha ()
 Get the alpha value of the running average. More...
 
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 More...
 

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
 

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

float gr::blocks::peak_detector2_fb_impl::alpha ( )
inlinevirtual

Get the alpha value of the running average.

Returns
alpha

Implements gr::blocks::peak_detector2_fb.

Referenced by set_alpha().

int gr::blocks::peak_detector2_fb_impl::look_ahead ( )
inlinevirtual

Get the look-ahead factor value.

Returns
look-ahead factor

Implements gr::blocks::peak_detector2_fb.

void gr::blocks::peak_detector2_fb_impl::set_alpha ( int  alpha)
inlinevirtual

Set the running average alpha.

Parameters
alphanew alpha for running average

Implements gr::blocks::peak_detector2_fb.

References alpha().

void gr::blocks::peak_detector2_fb_impl::set_look_ahead ( int  look)
inlinevirtual

Set the look-ahead factor.

Parameters
looknew look-ahead factor

Implements gr::blocks::peak_detector2_fb.

void gr::blocks::peak_detector2_fb_impl::set_threshold_factor_rise ( float  thr)
inlinevirtual

Set the threshold factor value for the rise time.

Parameters
thrnew threshold factor

Implements gr::blocks::peak_detector2_fb.

float gr::blocks::peak_detector2_fb_impl::threshold_factor_rise ( )
inlinevirtual

Get the threshold factor value for the rise time.

Returns
threshold factor

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.


The documentation for this class was generated from the following file: