From 3d92c79e311f40cb2f3839b5ac68eab76c476408 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 30 Dec 2011 10:58:04 -0500 Subject: digital: SNR estimators just take a complex vector; not full vector of complex vectors. --- gr-digital/lib/digital_impl_mpsk_snr_est.cc | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'gr-digital/lib/digital_impl_mpsk_snr_est.cc') diff --git a/gr-digital/lib/digital_impl_mpsk_snr_est.cc b/gr-digital/lib/digital_impl_mpsk_snr_est.cc index 87ac84e04..38177083f 100644 --- a/gr-digital/lib/digital_impl_mpsk_snr_est.cc +++ b/gr-digital/lib/digital_impl_mpsk_snr_est.cc @@ -50,7 +50,7 @@ digital_impl_mpsk_snr_est::alpha() const int digital_impl_mpsk_snr_est::update(int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { throw std::runtime_error("digital_impl_mpsk_snr_est: Unimplemented"); } @@ -76,10 +76,8 @@ digital_impl_mpsk_snr_est_simple::digital_impl_mpsk_snr_est_simple( int digital_impl_mpsk_snr_est_simple::update( int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { - const gr_complex *in = (const gr_complex *) input_items[0]; - for (int i = 0; i < noutput_items; i++){ double y1 = abs(in[i]); d_y1 = d_alpha*y1 + d_beta*d_y1; @@ -115,10 +113,8 @@ digital_impl_mpsk_snr_est_skew::digital_impl_mpsk_snr_est_skew( int digital_impl_mpsk_snr_est_skew::update( int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { - const gr_complex *in = (const gr_complex *) input_items[0]; - for (int i = 0; i < noutput_items; i++){ double y1 = abs(in[i]); d_y1 = d_alpha*y1 + d_beta*d_y1; @@ -161,10 +157,8 @@ digital_impl_mpsk_snr_est_m2m4::digital_impl_mpsk_snr_est_m2m4( int digital_impl_mpsk_snr_est_m2m4::update( int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { - const gr_complex *in = (const gr_complex *) input_items[0]; - for (int i = 0; i < noutput_items; i++){ double y1 = abs(in[i])*abs(in[i]); d_y1 = d_alpha*y1 + d_beta*d_y1; @@ -200,10 +194,8 @@ digital_impl_snr_est_m2m4::digital_impl_snr_est_m2m4( int digital_impl_snr_est_m2m4::update( int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { - const gr_complex *in = (const gr_complex *) input_items[0]; - for (int i = 0; i < noutput_items; i++) { double y1 = abs(in[i])*abs(in[i]); d_y1 = d_alpha*y1 + d_beta*d_y1; @@ -242,10 +234,8 @@ digital_impl_mpsk_snr_est_svr::digital_impl_mpsk_snr_est_svr( int digital_impl_mpsk_snr_est_svr::update( int noutput_items, - gr_vector_const_void_star &input_items) + const gr_complex *in) { - const gr_complex *in = (const gr_complex *) input_items[0]; - for (int i = 0; i < noutput_items; i++){ double x = abs(in[i]); double x1 = abs(in[i-1]); -- cgit