diff options
Diffstat (limited to 'gr-digital/include')
-rw-r--r-- | gr-digital/include/digital_impl_mpsk_snr_est.h | 22 | ||||
-rw-r--r-- | gr-digital/include/digital_mpsk_snr_est_cc.h | 7 |
2 files changed, 12 insertions, 17 deletions
diff --git a/gr-digital/include/digital_impl_mpsk_snr_est.h b/gr-digital/include/digital_impl_mpsk_snr_est.h index 67cf83ec9..a96f3e9c1 100644 --- a/gr-digital/include/digital_impl_mpsk_snr_est.h +++ b/gr-digital/include/digital_impl_mpsk_snr_est.h @@ -25,6 +25,13 @@ #include <digital_api.h> #include <gr_sync_block.h> +enum snr_est_type_t { + SNR_EST_SIMPLE = 0, // Simple estimator (>= 7 dB) + SNR_EST_SKEW, // Skewness-base est (>= 5 dB) + SNR_EST_M2M4, // 2nd & 4th moment est (>= 1 dB) + SNR_EST_SVN // SVN-based est (>= 0dB) +}; + /*! * Parent class for SNR Estimators */ @@ -45,8 +52,7 @@ class DIGITAL_API digital_impl_mpsk_snr_est //! Update the current registers virtual int update(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items); //! Use the register values to compute a new estimate virtual double snr(); @@ -64,8 +70,7 @@ class DIGITAL_API digital_impl_mpsk_snr_est_simple : ~digital_impl_mpsk_snr_est_simple() {} int update(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items); double snr(); }; @@ -81,8 +86,7 @@ class DIGITAL_API digital_impl_mpsk_snr_est_skew : ~digital_impl_mpsk_snr_est_skew() {} int update(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items); double snr(); }; @@ -98,8 +102,7 @@ class DIGITAL_API digital_impl_mpsk_snr_est_m2m4 : ~digital_impl_mpsk_snr_est_m2m4() {} int update(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items); double snr(); }; @@ -115,8 +118,7 @@ class DIGITAL_API digital_impl_mpsk_snr_est_svn : ~digital_impl_mpsk_snr_est_svn() {} int update(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items); double snr(); }; diff --git a/gr-digital/include/digital_mpsk_snr_est_cc.h b/gr-digital/include/digital_mpsk_snr_est_cc.h index 84d6380a9..126b5f8c9 100644 --- a/gr-digital/include/digital_mpsk_snr_est_cc.h +++ b/gr-digital/include/digital_mpsk_snr_est_cc.h @@ -29,13 +29,6 @@ class digital_mpsk_snr_est_cc; typedef boost::shared_ptr<digital_mpsk_snr_est_cc> digital_mpsk_snr_est_cc_sptr; -enum snr_est_type_t { - SNR_EST_SIMPLE = 0, // Simple estimator (>= 7 dB) - SNR_EST_SKEW, // Skewness-base est (>= 5 dB) - SNR_EST_M2M4, // 2nd & 4th moment est (>= 3 dB) - SNR_EST_SVN // SVN-based est (>= 0dB) -}; - DIGITAL_API digital_mpsk_snr_est_cc_sptr digital_make_mpsk_snr_est_cc(snr_est_type_t type, double alpha); |