From: Laurent MAZET Date: Wed, 22 Oct 2025 07:40:15 +0000 (+0200) Subject: correct statistic computations X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=71f51cfb8cbe9dbdaeea65957f09b367802e093d;p=benchmarks.git correct statistic computations --- diff --git a/stat.c b/stat.c index 0bd28c3..c0ec491 100644 --- a/stat.c +++ b/stat.c @@ -17,9 +17,9 @@ void compute_statistics (dts_t *points, int nb, int bins) /* compute average, minimum and maximum */ - double avg = 0; - double min = points[1]; - double max = points[1]; + double avg = points[0]; + double min = points[0]; + double max = points[0]; for (int i = 1; i < nb; i++) { double pt = points[i];