code: Minor corrections for HUE

This commit is contained in:
2021-10-01 06:38:43 +02:00
parent 61d4951280
commit cdb1b01095
2 changed files with 14 additions and 16 deletions

View File

@ -443,7 +443,7 @@ def adaptive_cons(seq, lmdks, epsilon, inc_rt, dec_rt):
else:
skipped += 1
# Skip current release and approximate with previous
rls_data[i] = rls_data[i - 1]
rls_data[i] = [p[0], rls_data[i - 1][1]]
if is_landmark:
# Allocate the current budget to the following releases uniformly
for j in range(i + 1, len(seq)):
@ -538,7 +538,7 @@ def skip_cons(seq, lmdks, epsilon):
if is_landmark:
if i > 0:
# Approximate with previous
o = rls_data[i - 1]
o[1] = rls_data[i - 1][1]
bgts[i] = 0
rls_data[i] = o
return rls_data, bgts