GNU Radio 3.3.0 C++ API
|
#include <gr_probe_density_b.h>
Public Member Functions | |
~gr_probe_density_b () | |
double | density () const |
Returns the current density value. | |
void | set_alpha (double alpha) |
Set the average filter constant. | |
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 | |
Friends | |
gr_probe_density_b_sptr | gr_make_probe_density_b (double alpha) |
This block maintains a running average of the input stream and makes it available as an accessor function. The input stream is type unsigned char.
If you send this block a stream of unpacked bytes, it will tell you what the bit density is.
alpha | Average filter constant |
gr_probe_density_b::~gr_probe_density_b | ( | ) |
double gr_probe_density_b::density | ( | ) | const [inline] |
Returns the current density value.
void gr_probe_density_b::set_alpha | ( | double | alpha | ) |
Set the average filter constant.
int gr_probe_density_b::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.
gr_probe_density_b_sptr gr_make_probe_density_b | ( | double | alpha | ) | [friend] |