squiggle.c

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

commit 8f6919fa2a845ae5709277829204423765b83e3b
parent 47c3e5683a217f0f2930e533fa5d4be7d6c3580a
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Wed, 31 Jan 2024 15:35:00 +0100

give up on text alignment

Diffstat:
Msquiggle_more.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/squiggle_more.c b/squiggle_more.c @@ -366,7 +366,7 @@ void array_print_90_ci_histogram(double* xs, int n_samples, int n_bins){ decimalPlaces = -magnitude; decimalPlaces = decimalPlaces > 10 ? 10 : decimalPlaces; } - printf( " ( -∞, %*.*f): %d\n", 4+decimalPlaces, decimalPlaces, min_value, below_min); + printf( " (-∞, %*.*f): %d\n", 4+decimalPlaces, decimalPlaces, min_value, below_min); for (int i = 0; i < n_bins; i++) { double bin_start = min_value + i * bin_width; double bin_end = bin_start + bin_width; @@ -384,7 +384,7 @@ void array_print_90_ci_histogram(double* xs, int n_samples, int n_bins){ } printf(" %d\n", bins[i]); } - printf( " (%*.*f, +∞): %d\n", 4+decimalPlaces, decimalPlaces, max_value, above_max); + printf( " (%*.*f, +∞): %d\n", 4+decimalPlaces, decimalPlaces, max_value, above_max); // Free the allocated memory for bins free(bins);