GNU Radio 3.6.5 C++ API
|
#include <digital_probe_density_b.h>
Public Member Functions | |
~digital_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 | |
DIGITAL_API digital_probe_density_b_sptr | digital_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 |
digital_probe_density_b::~digital_probe_density_b | ( | ) |
double digital_probe_density_b::density | ( | ) | const [inline] |
Returns the current density value.
void digital_probe_density_b::set_alpha | ( | double | alpha | ) |
Set the average filter constant.
int digital_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.
DIGITAL_API digital_probe_density_b_sptr digital_make_probe_density_b | ( | double | alpha | ) | [friend] |