Commit 9173018d authored by Ashkan Taslimi's avatar Ashkan Taslimi

Fix estimate_n_for_k method

parent 9cd3bba5
......@@ -179,8 +179,8 @@ class HECGreedySearch(AbstractSearch):
n = k + 1
while self.residual_packet_erasure_rate(k, n, self.prrtApplicationParameters, self.prrtChannelParameters) > self.prrtApplicationParameters.max_residual_loss_rate\
and n <= self.n_max - self.step_size:
print("")
n = k + self.step_size
return n
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment