GNU Radio 3.6.5 C++ API

gr_probe_density_b Class Reference

#include <gr_probe_density_b.h>

Inheritance diagram for gr_probe_density_b:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

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_CORE_API gr_probe_density_b_sptr gr_make_probe_density_b (double alpha)

Detailed Description

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.

Parameters:
alphaAverage filter constant

Constructor & Destructor Documentation

gr_probe_density_b::~gr_probe_density_b ( )

Member Function Documentation

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.


Friends And Related Function Documentation

GR_CORE_API gr_probe_density_b_sptr gr_make_probe_density_b ( double  alpha) [friend]

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