summaryrefslogtreecommitdiff
path: root/gr-digital/examples
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-12-29 15:38:49 -0500
committerTom Rondeau <trondeau@vt.edu>2011-12-29 15:38:49 -0500
commit886e3c258ff40b4d10e7e8fc28912f14565a4fd1 (patch)
treebefcf76a159a74300d4ef7aef93664cfc3c9095c /gr-digital/examples
parent2db40bb40eda996bf47417a04ec001acb422d3d9 (diff)
digital: adding documentation for SNR estimators; added an estimator for M2M4 type that allows the user to set the kurtosis of the signal and noise, if known, to work with non-MPSK and non-AWGN channels (untested).
Also, the technique is signal to variation ratio (SVR), not SVN. Couldn't read my own writing.
Diffstat (limited to 'gr-digital/examples')
-rwxr-xr-xgr-digital/examples/snr_estimators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-digital/examples/snr_estimators.py b/gr-digital/examples/snr_estimators.py
index 0f9fbca2b4..6bd9257fac 100755
--- a/gr-digital/examples/snr_estimators.py
+++ b/gr-digital/examples/snr_estimators.py
@@ -68,7 +68,7 @@ def snr_est_m2m4(signal):
snr_rat = 2*scipy.sqrt(2*M2*M2 - M4) / (M2 - scipy.sqrt(2*M2*M2 - M4))
return 10.0*scipy.log10(snr_rat), snr_rat
-def snr_est_svn(signal):
+def snr_est_svr(signal):
N = len(signal)
ssum = 0
msum = 0
@@ -87,11 +87,11 @@ def main():
gr_estimators = {"simple": digital.SNR_EST_SIMPLE,
"skew": digital.SNR_EST_SKEW,
"m2m4": digital.SNR_EST_M2M4,
- "svn": digital.SNR_EST_SVN}
+ "svr": digital.SNR_EST_SVR}
py_estimators = {"simple": snr_est_simple,
"skew": snr_est_skew,
"m2m4": snr_est_m2m4,
- "svn": snr_est_svn}
+ "svr": snr_est_svr}
parser = OptionParser(option_class=eng_option, conflict_handler="resolve")