GNU Radio 3.3.0 C++ API
|
#include <gr_probe_mpsk_snr_c.h>
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_probe_mpsk_snr_c_sptr | gr_make_probe_mpsk_snr_c (double alpha) |
Compute the estimate SNR of an MPSK signal using the Squared Signal to Noise Variance (SNV) technique.
This technique assumes an AWGN channel.
alpha | Mean 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.
gr_probe_mpsk_snr_c::~gr_probe_mpsk_snr_c | ( | ) |
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.
gr_probe_mpsk_snr_c_sptr gr_make_probe_mpsk_snr_c | ( | double | alpha | ) | [friend] |