diff --git a/ex-3/common.c b/ex-3/common.c index 4211124..cd8abf6 100644 --- a/ex-3/common.c +++ b/ex-3/common.c @@ -99,7 +99,7 @@ void compatibility(gsl_vector *def, double a, b; double t, sigma, alpha; - fprintf(stderr, "| par | σ | α-value |\n"); + fprintf(stderr, "| par | σ | p-value |\n"); fprintf(stderr, "|-----|----------|----------|\n"); for (size_t i = 0; i < def->size; i++) { // discrepancy diff --git a/ex-3/main.c b/ex-3/main.c index 3d9c981..67bd16a 100644 --- a/ex-3/main.c +++ b/ex-3/main.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) { /* Process CLI arguments */ for (size_t i = 1; i < argc; i++) { if (!strcmp(argv[i], "-i")) opts.show_hist = 1; - if (!strcmp(argv[i], "-I")) opts.only_hist = 1; + else if (!strcmp(argv[i], "-I")) opts.only_hist = 1; else if (!strcmp(argv[i], "-n")) opts.num_events = atol(argv[++i]); else if (!strcmp(argv[i], "-t")) opts.bins_theta = atol(argv[++i]); else if (!strcmp(argv[i], "-p")) opts.bins_phi = atol(argv[++i]);