ex-1: make KS test output match the other tests
This commit is contained in:
parent
29dda3e151
commit
1d7e88d7cb
@ -66,8 +66,8 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
// print the results
|
// print the results
|
||||||
fprintf(stderr, "\n## Results\n");
|
fprintf(stderr, "\n## Results\n");
|
||||||
fprintf(stderr, "D: %f\n", D);
|
fprintf(stderr, "D=%g\n", D);
|
||||||
fprintf(stderr, "α: %g\n", 1 - beta);
|
fprintf(stderr, "p=%.3f\n", 1 - beta);
|
||||||
|
|
||||||
|
|
||||||
/* Mode comparison
|
/* Mode comparison
|
||||||
|
@ -35,9 +35,9 @@ double kolmogorov_cdf(double D, int n) {
|
|||||||
gsl_sum_levin_utrunc_accel(terms, n_terms, s, &sum, &abserr);
|
gsl_sum_levin_utrunc_accel(terms, n_terms, s, &sum, &abserr);
|
||||||
|
|
||||||
fprintf(stderr, "\n## Kolmogorov CDF\n");
|
fprintf(stderr, "\n## Kolmogorov CDF\n");
|
||||||
fprintf(stderr, "accel sum: %f\n", sum);
|
fprintf(stderr, "accel sum: %g\n", sum);
|
||||||
fprintf(stderr, "plain sum: %f\n", s->sum_plain);
|
fprintf(stderr, "plain sum: %g\n", s->sum_plain);
|
||||||
fprintf(stderr, "err: %f\n", abserr);
|
fprintf(stderr, "err: %g\n", abserr);
|
||||||
|
|
||||||
gsl_sum_levin_utrunc_free(s);
|
gsl_sum_levin_utrunc_free(s);
|
||||||
free(terms);
|
free(terms);
|
||||||
|
Loading…
Reference in New Issue
Block a user