squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

commit 06109a0af1481d148d208e89f4f7c72213eaddc4
parent 99179410481f20df2e5ba31fd51cbbe343ea7426
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Tue,  6 Feb 2024 16:49:25 +0100

fix: display histogram upper bound correctly

Diffstat:
Msquiggle_more.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/squiggle_more.c b/squiggle_more.c @@ -397,7 +397,7 @@ void array_print_90_ci_histogram(double* xs, int n_samples, int n_bins) } printf(" %d\n", bins[i]); } - printf("(%*.*f, %*s): ", 4 + decimalPlaces, decimalPlaces, min_value, 6 + decimalPlaces, "+∞"); + printf("(%*.*f, %*s): ", 4 + decimalPlaces, decimalPlaces, max_value, 6 + decimalPlaces, "+∞"); int marks_above_max = (int)(above_max * scale); for (int j = 0; j < marks_above_max; j++) { printf("█");