Skip to content

Commit ff4971f

Browse files
Sean Nowlanjmcorgan
Sean Nowlan
authored andcommitted
trellis: fixed pulse normalization in CPM test script
1 parent 2fa3642 commit ff4971f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gr-trellis/examples/python/test_cpm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def run_test(seed,blocksize):
4444

4545
# CPFSK signals
4646
#p = numpy.ones(L*Q)
47+
#p = p/sum(p)*Q/2.0;
4748
#q = numpy.cumsum(p)
4849
#q = q/q[-1]/2.0;
4950

@@ -54,7 +55,7 @@ def run_test(seed,blocksize):
5455
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;
5556
p=p/sum(p)*Q/2.0;
5657
#print p
57-
q=numpy.cumsum(p)/Q;
58+
q=numpy.cumsum(p);
5859
q=q/q[-1]/2.0;
5960
#print q
6061

0 commit comments

Comments
 (0)