GNU Radio 3.6.5 C++ API

gr::analog::probe_avg_mag_sqrd_c Class Reference

compute avg magnitude squared. More...

#include <probe_avg_mag_sqrd_c.h>

Inheritance diagram for gr::analog::probe_avg_mag_sqrd_c:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::analog::probe_avg_mag_sqrd_c_impl

List of all members.

Public Types

typedef boost::shared_ptr
< probe_avg_mag_sqrd_c
sptr

Public Member Functions

virtual bool unmuted () const =0
virtual double level () const =0
virtual double threshold () const =0
virtual void set_alpha (double alpha)=0
virtual void set_threshold (double decibels)=0

Static Public Member Functions

static sptr make (double threshold_db, double alpha=0.0001)
 Make a complex sink that computes avg magnitude squared.

Detailed Description

compute avg magnitude squared.

Input stream 0: complex

Compute a running average of the magnitude squared of the the input. The level and indication as to whether the level exceeds threshold can be retrieved with the level and unmuted accessors.


Member Typedef Documentation


Member Function Documentation

virtual double gr::analog::probe_avg_mag_sqrd_c::level ( ) const [pure virtual]
static sptr gr::analog::probe_avg_mag_sqrd_c::make ( double  threshold_db,
double  alpha = 0.0001 
) [static]

Make a complex sink that computes avg magnitude squared.

Parameters:
threshold_dbThreshold for muting.
alphaGain parameter for the running average filter.
virtual void gr::analog::probe_avg_mag_sqrd_c::set_alpha ( double  alpha) [pure virtual]
virtual void gr::analog::probe_avg_mag_sqrd_c::set_threshold ( double  decibels) [pure virtual]
virtual double gr::analog::probe_avg_mag_sqrd_c::threshold ( ) const [pure virtual]
virtual bool gr::analog::probe_avg_mag_sqrd_c::unmuted ( ) const [pure virtual]

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