gr_probe_density_b Class Reference

#include <gr_probe_density_b.h>

Inheritance diagram for gr_probe_density_b:
Inheritance graph
[legend]

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_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:
alpha Average 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_probe_density_b_sptr gr_make_probe_density_b ( double  alpha  )  [friend]

The documentation for this class was generated from the following file:
Generated on Wed Dec 29 19:39:16 2010 for GNU Radio 3.3.0 C++ API by  doxygen 1.6.3