diff options
author | Sean Nowlan <sean.nowlan@gtri.gatech.edu> | 2015-09-15 14:03:12 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-09-20 21:01:00 -0700 |
commit | ff4971fda48d765a12437b3eb6611994eb067a7a (patch) | |
tree | b6bf68bec62a1eb7a7f15dd1a073893d589cfa6a | |
parent | 2fa36424c30dc81f23a49413543d7205b2f127ff (diff) |
trellis: fixed pulse normalization in CPM test script
-rwxr-xr-x | gr-trellis/examples/python/test_cpm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-trellis/examples/python/test_cpm.py b/gr-trellis/examples/python/test_cpm.py index 6fe25ec68c..8014c8702a 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 |