Skip to content

Commit

Permalink
Adding missing library links and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmccaffreynist committed Jun 13, 2023
1 parent f280420 commit d72243d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cpp/restart_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "non_iid/multi_mcw_test.h"
#include "non_iid/compression_test.h"
#include "non_iid/markov_test.h"
#include "iid/chi_square_tests.h"
#include "iid/permutation_tests.h"

#include <cstdint>
#include <getopt.h>
Expand Down Expand Up @@ -146,6 +148,7 @@ int main(int argc, char* argv[]) {
long int X_cutoff;
long i, j, X_i, X_r, X_c, X_max;
double H_I, H_r, H_c, alpha, ret_min_entropy;
double rawmean, median;
uint8_t *rdata, *cdata;
data_t data;
int opt;
Expand Down Expand Up @@ -458,6 +461,16 @@ int main(int argc, char* argv[]) {
exit(-1);
} else if (verbose > 1) printf("\nRestart Sanity Check Passed...\n");


// Calculate baseline statistics
int alphabet_size = data.alph_size;
int sample_size = data.len;

if ((verbose == 1) || (verbose == 2))
printf("Calculating baseline statistics...\n");

calc_stats(&data, rawmean, median);

// The maximum min-entropy is -log2(1/2^word_size) = word_size
H_c = data.word_size;
H_r = data.word_size;
Expand Down

0 comments on commit d72243d

Please sign in to comment.