ex-1: make KS test output match the other tests

This commit is contained in:
Michele Guerini Rocco 2020-04-08 12:43:14 +02:00
parent 29dda3e151
commit 1d7e88d7cb
2 changed files with 5 additions and 5 deletions

View File

@ -66,8 +66,8 @@ int main(int argc, char** argv) {
// print the results
fprintf(stderr, "\n## Results\n");
fprintf(stderr, "D: %f\n", D);
fprintf(stderr, "α: %g\n", 1 - beta);
fprintf(stderr, "D=%g\n", D);
fprintf(stderr, "p=%.3f\n", 1 - beta);
/* Mode comparison

View File

@ -35,9 +35,9 @@ double kolmogorov_cdf(double D, int n) {
gsl_sum_levin_utrunc_accel(terms, n_terms, s, &sum, &abserr);
fprintf(stderr, "\n## Kolmogorov CDF\n");
fprintf(stderr, "accel sum: %f\n", sum);
fprintf(stderr, "plain sum: %f\n", s->sum_plain);
fprintf(stderr, "err: %f\n", abserr);
fprintf(stderr, "accel sum: %g\n", sum);
fprintf(stderr, "plain sum: %g\n", s->sum_plain);
fprintf(stderr, "err: %g\n", abserr);
gsl_sum_levin_utrunc_free(s);
free(terms);