squiggle.c

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

commit b548d50debb4fe71b61990c3d6a1562fe21f9394
parent d70296f2308c3b6b8dbb53ee16e698f2a702dc7f
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Tue, 30 Jan 2024 16:24:56 +0100

rename variable

Diffstat:
Msquiggle_more.c | 2+-
Msquiggle_more.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/squiggle_more.c b/squiggle_more.c @@ -214,7 +214,7 @@ void array_print_stats(double xs[], int n){ } -void print_histogram(double* xs, int n_samples, int n_bins) { +void array_print_histogram(double* xs, int n_samples, int n_bins) { // Generated with the help of an llm; there might be subtle off-by-one errors // interface inspired by <https://github.com/red-data-tools/YouPlot> if (n_bins <= 0) { diff --git a/squiggle_more.h b/squiggle_more.h @@ -13,7 +13,7 @@ typedef struct ci_t { ci array_get_ci(ci interval, double* xs, int n); ci array_get_90_ci(double xs[], int n); void array_print_stats(double xs[], int n); -void print_histogram(double* xs, int n_samples, int n_bins); +void array_print_histogram(double* xs, int n_samples, int n_bins); // Deprecated: get confidence intervals directly from samplers ci sampler_get_ci(ci interval, double (*sampler)(uint64_t*), int n, uint64_t* seed);