From 71f51cfb8cbe9dbdaeea65957f09b367802e093d Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Wed, 22 Oct 2025 09:40:15 +0200 Subject: [PATCH] correct statistic computations --- stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; -- 2.30.2