[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/03: trellis: fixed pulse normalization i
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/03: trellis: fixed pulse normalization in CPM test script |
Date: |
Mon, 21 Sep 2015 04:44:35 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit ff4971fda48d765a12437b3eb6611994eb067a7a
Author: Sean Nowlan <address@hidden>
Date: Tue Sep 15 14:03:12 2015 -0400
trellis: fixed pulse normalization in CPM test script
---
gr-trellis/examples/python/test_cpm.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gr-trellis/examples/python/test_cpm.py
b/gr-trellis/examples/python/test_cpm.py
index 6fe25ec..8014c87 100755
--- a/gr-trellis/examples/python/test_cpm.py
+++ b/gr-trellis/examples/python/test_cpm.py
@@ -44,6 +44,7 @@ def run_test(seed,blocksize):
# CPFSK signals
#p = numpy.ones(L*Q)
+ #p = p/sum(p)*Q/2.0;
#q = numpy.cumsum(p)
#q = q/q[-1]/2.0;
@@ -54,7 +55,7 @@ def run_test(seed,blocksize):
p=(0.5*scipy.special.erfc(2*math.pi*BT*(tt-0.5)/math.sqrt(math.log(2.0))/math.sqrt(2.0))-0.5*scipy.special.erfc(2*math.pi*BT*(tt+0.5)/math.sqrt(math.log(2.0))/math.sqrt(2.0)))/2.0;
p=p/sum(p)*Q/2.0;
#print p
- q=numpy.cumsum(p)/Q;
+ q=numpy.cumsum(p);
q=q/q[-1]/2.0;
#print q