Skip to content

Commit 1fc1334

Browse files
initialize arrays to zeros
1 parent 47971d6 commit 1fc1334

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commpy/channelcoding/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ noiseVar = 10**(-snrdB/10) # noise variance (power)
107107

108108
N_c = 10 # number of trials
109109

110-
BER_soft = -9e99*np.ones(N_c)
111-
BER_hard = -9e99*np.ones(N_c)
112-
BER_uncoded = -9e99*np.ones(N_c)
110+
BER_soft = np.zeros(N_c)
111+
BER_hard = np.zeros(N_c)
112+
BER_uncoded = np.zeros(N_c)
113113

114114
for cntr in range(N_c):
115115

0 commit comments

Comments
 (0)