@@ -68,7 +68,7 @@ def _compute_branch_prob(code_bit_0, code_bit_1, rx_symbol_0, rx_symbol_1,
6868 y = rx_symbol_1 - code_symbol_1
6969
7070 # Normalized branch transition probability
71- branch_prob = np . exp (- (x * x + y * y )/ (2 * noise_variance ))
71+ branch_prob = exp (- (x * x + y * y )/ (2 * noise_variance ))
7272
7373 return branch_prob
7474
@@ -80,7 +80,7 @@ def _backward_recursion(trellis, msg_length, noise_variance,
8080 number_states = trellis .number_states
8181 number_inputs = trellis .number_inputs
8282
83- codeword_array = np . empty (n , 'int' )
83+ codeword_array = empty (n , 'int' )
8484 next_state_table = trellis .next_state_table
8585 output_table = trellis .output_table
8686
@@ -117,7 +117,7 @@ def _forward_recursion_decoding(trellis, mode, msg_length, noise_variance,
117117 number_states = trellis .number_states
118118 number_inputs = trellis .number_inputs
119119
120- codeword_array = np . empty (n , 'int' )
120+ codeword_array = empty (n , 'int' )
121121 next_state_table = trellis .next_state_table
122122 output_table = trellis .output_table
123123
@@ -139,7 +139,7 @@ def _forward_recursion_decoding(trellis, mode, msg_length, noise_variance,
139139 branch_prob *
140140 b_state_metrics [next_state , time_index ])
141141
142- lappr = L_int [time_index - 1 ] + np . log (app [1 ]/ app [0 ])
142+ lappr = L_int [time_index - 1 ] + log (app [1 ]/ app [0 ])
143143 L_ext [time_index - 1 ] = lappr
144144
145145 if mode == 'decode' :
0 commit comments