Skip to content

Commit

Permalink
Readds check on binary compression test
Browse files Browse the repository at this point in the history
  • Loading branch information
celic committed Jan 14, 2022
1 parent 5db161b commit 71160ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/non_iid_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ int main(int argc, char* argv[]) {

if (initial_entropy && (data.alph_size == 2)) {
ret_min_entropy = compression_test(data.symbols, data.len, verbose, "Literal");
if (verbose == 1) printf("\ttCompression Test Estimate = %f / 1 bit(s)\n", ret_min_entropy);
H_original = min(ret_min_entropy, H_original);
if (ret_min_entropy >= 0) {
if (verbose == 1) printf("\tCompression Test Estimate = %f / 1 bit(s)\n", ret_min_entropy);
H_original = min(ret_min_entropy, H_original);
}
}

NonIidTestCase tc634;
Expand Down

0 comments on commit 71160ce

Please sign in to comment.