From dc845be7ef1f74d8bc1e25c833e17b39a438ad23 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 27 Apr 2020 21:33:43 +0000 Subject: [PATCH] ex-3: call it a p-value --- ex-3/common.c | 2 +- ex-3/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]);