GNU Radio 3.7.1 C++ API
gr::digital::probe_mpsk_snr_est_c Class Reference

A probe for computing SNR of a signal. More...

#include <probe_mpsk_snr_est_c.h>

Inheritance diagram for gr::digital::probe_mpsk_snr_est_c:

List of all members.

Public Types

typedef boost::shared_ptr
< probe_mpsk_snr_est_c
sptr

Public Member Functions

virtual double snr ()=0
 Return the estimated signal-to-noise ratio in decibels.
virtual snr_est_type_t type () const =0
 Return the type of estimator in use.
virtual int msg_nsample () const =0
 Return how many samples between SNR messages.
virtual double alpha () const =0
 Get the running-average coefficient.
virtual void set_type (snr_est_type_t t)=0
 Set type of estimator to use.
virtual void set_msg_nsample (int n)=0
 Set the number of samples between SNR messages.
virtual void set_alpha (double alpha)=0
 Set the running-average coefficient.

Static Public Member Functions

static sptr make (snr_est_type_t type, int msg_nsamples=10000, double alpha=0.001)

Detailed Description

A probe for computing SNR of a signal.

This is a probe block (a sink) that can be used to monitor and retrieve estimations of the signal SNR. This probe is designed for use with M-PSK signals especially. The type of estimator is specified as the type parameter in the constructor. The estimators tend to trade off performance for accuracy, although experimentation should be done to figure out the right approach for a given implementation. Further, the current set of estimators are designed and proven theoretically under AWGN conditions; some amount of error should be assumed and/or estimated for real channel conditions.


Member Typedef Documentation


Member Function Documentation

virtual double gr::digital::probe_mpsk_snr_est_c::alpha ( ) const [pure virtual]

Get the running-average coefficient.

static sptr gr::digital::probe_mpsk_snr_est_c::make ( snr_est_type_t  type,
int  msg_nsamples = 10000,
double  alpha = 0.001 
) [static]

Make an MPSK SNR probe.

Parameters:

Parameters:
type,:the type of estimator to use see gr::digital::snr_est_type_t for details about the types.
msg_nsamples,:[not implemented yet] after this many samples, a message containing the SNR (key='snr') will be sent
alpha,:the update rate of internal running average calculations.
virtual int gr::digital::probe_mpsk_snr_est_c::msg_nsample ( ) const [pure virtual]

Return how many samples between SNR messages.

virtual void gr::digital::probe_mpsk_snr_est_c::set_alpha ( double  alpha) [pure virtual]

Set the running-average coefficient.

virtual void gr::digital::probe_mpsk_snr_est_c::set_msg_nsample ( int  n) [pure virtual]

Set the number of samples between SNR messages.

Set type of estimator to use.

virtual double gr::digital::probe_mpsk_snr_est_c::snr ( ) [pure virtual]

Return the estimated signal-to-noise ratio in decibels.

virtual snr_est_type_t gr::digital::probe_mpsk_snr_est_c::type ( ) const [pure virtual]

Return the type of estimator in use.


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