GNU Radio 3.5.3.2 C++ API
gr_probe_mpsk_snr_c Class Reference

#include <gr_probe_mpsk_snr_c.h>

Inheritance diagram for gr_probe_mpsk_snr_c:

List of all members.

Public Member Functions

 ~gr_probe_mpsk_snr_c ()
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
double signal_mean () const
double noise_variance () const
double snr () const
void set_alpha (double alpha)

Friends

GR_CORE_API
gr_probe_mpsk_snr_c_sptr 
gr_make_probe_mpsk_snr_c (double alpha)

Detailed Description

Compute the estimate SNR of an MPSK signal using the Squared Signal to Noise Variance (SNV) technique.

This technique assumes an AWGN channel.

Parameters:
alphaMean and variance smoothing filter constant

Compute the running average of the signal mean and noise variance. The estimated signal mean, noise variance, and SNR are available via accessors.

This SNR estimator is inaccurate below about 7dB SNR.


Constructor & Destructor Documentation

gr_probe_mpsk_snr_c::~gr_probe_mpsk_snr_c ( )

Member Function Documentation

double gr_probe_mpsk_snr_c::noise_variance ( ) const [inline]
void gr_probe_mpsk_snr_c::set_alpha ( double  alpha)
double gr_probe_mpsk_snr_c::signal_mean ( ) const [inline]
double gr_probe_mpsk_snr_c::snr ( ) const
int gr_probe_mpsk_snr_c::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_mpsk_snr_c_sptr gr_make_probe_mpsk_snr_c ( double  alpha) [friend]

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